Я пробовал следующее,
/*
* addRelationship
*
* Adds a relationship between two entities using the given relation type.
*
* @param fromKey the original entity
* @param toKey the referring entity
* @param relationTypeDesc the type of relationship
*/
function addRelationship($fromKey, $toKey, $relationTypeDesc) {
$relationTypeKey = $this->getRelationTypeKey($relationTypeDesc);
Но когда я пытался использовать его в другом месте, он говорит, что PHPDoc не найден.
Any Есть идеи, как заставить это работать в NetBeans PHP?
ОБНОВЛЕНИЕ:
Ниже приводится обновленный синтаксис, который будет работать в NetBeans PHP -
/**
* addRelationship
*
* Adds a relationship between two entities using the given relation type.
*
* @param integer $fromKey the original entity
* @param integet $toKey the referring entity
* @param string $relationTypeDesc the type of relationship
*/
function addRelationship($fromKey, $toKey, $relationTypeDesc) {