Skip to content

Commit

Permalink
Fixed phpdoc for the persistence interfaces
Browse files Browse the repository at this point in the history
  • Loading branch information
stof committed Dec 12, 2011
1 parent fd738cf commit 862f286
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 5 deletions.
10 changes: 5 additions & 5 deletions lib/Doctrine/Common/Persistence/ManagerRegistry.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,14 +43,14 @@ function getDefaultManagerName();
*
* @param string $name The object manager name (null for the default one)
*
* @return \Doctrine\Common\Persistence\Manager
* @return \Doctrine\Common\Persistence\ObjectManager
*/
function getManager($name = null);

/**
* Gets an array of all registered object managers
*
* @return array An array of Manager instances
* @return array An array of ObjectManager instances
*/
function getManagers();

Expand All @@ -69,7 +69,7 @@ function getManagers();
*
* @param string $name The object manager name (null for the default one)
*
* @return \Doctrine\Common\Persistence\Manager
* @return \Doctrine\Common\Persistence\ObjectManager
*/
function resetManager($name = null);

Expand Down Expand Up @@ -97,7 +97,7 @@ function getManagerNames();
* @param string $persistentObject The name of the persistent object.
* @param string $persistentManagerName The object manager name (null for the default one)
*
* @return Doctrine\Common\Persistence\ObjectRepository
* @return \Doctrine\Common\Persistence\ObjectRepository
*/
function getRepository($persistentObject, $persistentManagerName = null);

Expand All @@ -106,7 +106,7 @@ function getRepository($persistentObject, $persistentManagerName = null);
*
* @param string $class A persistent object class name
*
* @return Manager|null
* @return \Doctrine\Common\Persistence\ObjectManager|null
*/
function getManagerForClass($class);
}
12 changes: 12 additions & 0 deletions lib/Doctrine/Common/Persistence/Mapping/ClassMetadata.php
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,19 @@ function getTypeOfField($fieldName);
*/
function getAssociationTargetClass($assocName);

/**
* Checks if the association is the inverse side of a bidirectional association
*
* @param string $assocName
* @return boolean
*/
function isAssociationInverseSide($assocName);

/**
* Returns the target field of the owning side of the association
*
* @param string $assocName
* @return string
*/
function getAssociationMappedByTargetField($assocName);
}

0 comments on commit 862f286

Please sign in to comment.