Answer by Jakub Matczak for Symfony : Get key value from object doctrine
AppBundle\Entity\Todo properties like 'todo_body' are clearly private (as stated in dump that you've provided) and therefore you cannot access them directly from outside with $todo->todo_body. You...
View ArticleAnswer by Alessandro Minoccheri for Symfony : Get key value from object doctrine
Try this, but first be sure to have in your entity the getter getTodoBody:todolist[0]->getTodoBody()If you don't have the getter inside TodoEntity add this:public function getTodoBody() { return...
View ArticleSymfony : Get key value from object doctrine
I have this array of objects with doctrine,how do i scope out one of the values?This doesnt seem to work for me : todolist[0]->todo_bodytodolist( [0] => AppBundle\Entity\Todo Object (...
View Article
More Pages to Explore .....