Welcome Guest, Not a member yet? Register   Sign In
Doctrine Model one-to-many relationship
#2

[eluser]TheJonas[/eluser]
Hmm... I think I partly found the problem - if I change the fetching type of the relationship explicitly to eager it works. Apparently there is a problem with the lazy loading because there are no proxy objects.

However, I do have $config->setAutoGenerateProxyClasses( TRUE ); in my Doctrine.php and from my understanding that should be enough to generate the proxy classes and load these. Any ideas on where the problem could be? And is there a way how can I see if the proxy classes are being generated properly? I tried searching my file system for files including "proxy" in their name and didn't come up with anything. I did run the doctrine console with the orm:generate-proxies command and it executed without writing anything to the console window...

Thanks!


Messages In This Thread
Doctrine Model one-to-many relationship - by El Forum - 12-18-2010, 05:40 PM
Doctrine Model one-to-many relationship - by El Forum - 12-19-2010, 07:06 AM
Doctrine Model one-to-many relationship - by El Forum - 08-02-2012, 11:58 PM



Theme © iAndrew 2016 - Forum software by © MyBB