I have a strange problem. Here is the error message:
Call the undefined method MyProject\BlogBundle\Entity\Blog::findOneById()
I set up the mapping, the entity class was created using the console, and I updated the schema in the database. What could be causing this problem?
I am using symfony2. Here is the line:
$blogRepo = $this->get('myproject.blog.repository.blog'); $blog = $blogRepo->findOneById($id);
Any ideas?
symfony doctrine2
Damien roche
source share