mirror of
https://github.com/doctrine/orm.git
synced 2026-03-24 06:52:09 +01:00
DDC-831: Return value of getAssociationMapping in class Doctrine\ORM\Mapping\ClassMetadataInfo #1025
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @doctrinebot on GitHub (Oct 7, 2010).
Jira issue originally created by user vigor_bg:
The problem is in the comment of function return value is Doctrine\ORM\Mapping\AssociationMapping.
My code expected to work with object of this type and normal situation is Fatal error: Call to a member function isOneToOne() on a non-object in /home/vis/projects/crm/trunk/library/Viscomp/Doctrine/Repository.php on line 371.
In my mind I suppose is normal to return object of Doctrine\ORM\Mapping\AssociationMapping, because in comment return value have this type.
I will be grateful if have fast answer because this is blocking issue for my project.
@doctrinebot commented on GitHub (Oct 7, 2010):
Comment created by @beberlei:
That is out of date, Association Mappings are now arrays. See the public $associationMappings definition how this array is structured.
@doctrinebot commented on GitHub (Oct 8, 2010):
Comment created by vigor_bg:
Could you please change the comment of return value of this method.
@doctrinebot commented on GitHub (Oct 10, 2010):
Comment created by @beberlei:
fixed
@doctrinebot commented on GitHub (Oct 10, 2010):
Issue was closed with resolution "Fixed"