I\'m trying to setup symfony with doctrine, configuring doctrine is new for me.
I try to retrieve a entity from the database by using the following code in my controller
try this:
$feedImport = $this->getDoctrine()->getRepository('AppBundle:MyClass');
if you want to access a particular function/method
$feedImport = $this->getDoctrine()->getRepository('AppBundle:MyClass')->sampleMethod();