You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Throws ORM/ORMInvalidArgumentException.php:68 "The given entity of type '\TestDoctrine\Entity\Friend' (\TestDoctrine\Entity\Friend@00000000309854b5000000005dfe4c27) has no identity/no id values set. It cannot be added to the identity map".
Because $entity has null id.
Flush after creating new Entity() and before adding $friend to $entity resolve this problem, but it makes many duct tapes.
Doctrine 2.6. Prev version works fine.
The text was updated successfully, but these errors were encountered:
Usage:
Throws ORM/ORMInvalidArgumentException.php:68 "The given entity of type '\TestDoctrine\Entity\Friend' (\TestDoctrine\Entity\Friend@00000000309854b5000000005dfe4c27) has no identity/no id values set. It cannot be added to the identity map".
Because $entity has null id.
Flush after creating new Entity() and before adding $friend to $entity resolve this problem, but it makes many duct tapes.
Doctrine 2.6. Prev version works fine.
The text was updated successfully, but these errors were encountered: