findOneBy 出現錯誤
洪大師
$em = $this->getDoctrine()->getManager();
$user = $em->getRepository('JohnWebBundle:User')->findOneBy(array('id'=>1));
出現以下錯誤
An exception occurred while executing 'SELECT t0.id AS id1, t0.username AS username2, t0.password AS password3, t0.age AS age4, t5.id AS id6, t5.mobile_number AS mobile_number7, t5.user_id AS user_id8 FROM user t0 LEFT JOIN profile t5 ON t5.user_id = t9.id WHERE t0.id = ?' with params [1]:
SQLSTATE[42S22]: Column not found: 1054 Unknown column 't9.id' in 'on clause'