In Symfony2 cannot get a foreign key value using FindbyOne & CreateQueryBuilder -
a symfony2 query returning values in array except 1 value primary key of table. both in createquerybuilder , findoneby i'm not able value can other values table. why?
$repository123 = $em->getrepository('loginloginbundle:clientuserdetails'); $client_userdetail = $repository123->createquerybuilder('cud') ->where('cud.userid = ' . $userid) ->getquery(); $clientuserdet = $client_userdetail->getresult();
here userid entity in clientuserdetails(). refers table userdetails. passed userid in query, can field values except userid.
symfony2
No comments:
Post a Comment