Affects Version/s: 2.3.4
Fix Version/s: None
Security Level: All
Address entity definition within User class
- @ORM\OneToOne(targetEntity="Address", fetch="EAGER", cascade="persist")
- @var \Application\Entity\Address
When User gets loaded via Doctrine, the resulting Address object within the User is not a proxy object but the concrete class specified in targetEntity. When trying to persist the User:
User object gets saved and another associated entity that is lazy loaded does get saved. What doesn't get saved into the database is the Address object. No exceptions are thrown, the Address object is simply ignored.