Quantcast
Channel: Symfony2 entity foreign keys - Stack Overflow
Browsing all 3 articles
Browse latest View live

Answer by Nawfal Serrar for Symfony2 entity foreign keys

Depending on how you get the user maybe it is a lazy load that you are using which will get the country only if you call the getter explicitly, to always get a country with the user try : /** * *...

View Article



Answer by Mateusz Badziński for Symfony2 entity foreign keys

Your Country object is now only a Proxy object - dump function don't call a Doctrine to get a related object. Try before dump get your object for example:dump($User->getCountry()):dump($User);OR try...

View Article

Image may be NSFW.
Clik here to view.

Symfony2 entity foreign keys

I can't figure it out..Why I haven't access to Country table?countryName should show Great Britain but it doesn't.This is my dump($User):My my piece of code of User entity: /** * *...

View Article
Browsing all 3 articles
Browse latest View live




Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>
<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596344.js" async> </script>