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 ArticleAnswer 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 ArticleSymfony2 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
More Pages to Explore .....