Skip to content

Tag: doctrine-orm

Symfony 5 – ManyToOne __isInitialized__: false

I try to get value from object but objects return __isInitialized__: false and null values what did I miss? twig situ dump : situ entity : event entity : category entity : Answer You just got to know the doctrine lazy loading feature. It fetches the data until you fired the getter method the first time. You c…

“Error [Semantical Error] The annotation “@DoctrineORMMappingOnetoMany” in property” on Gitlab CI but not in local env or production [closed]

Closed. This question is not reproducible or was caused by typos. It is not currently accepting answers. This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers. Closed las…

Only annotation mapping is supported by Maker Bundle

I have changed the configuration of my Symfony project to use PHP attributes with Doctrine in my Entities. I was really happy about this and wanted to give it a try. I have changed my doctrine.yaml from annotation to attribute and use attributes in my entities With this configuration my php bin/console do:sc:…

Doctrine unexpected behavior on bidirectional relations

I define two entities with bidirectional relations: One And two If I drop all related Product entities, the related productSet entity automatically dropped too. And I don’t understand why. How I prevent this behavior? Doctrine version 2.6.3 Answer according to docs – https://www.doctrine-project.o…