mam klasę w której są różne pomocnicze metody, ale za piernika nie wiem w jaki sposób odwołać się do Doctrine,,,
Wywala błąd:/
Attempted to call an undefined method named "getDoctrine" of class "MyBundle\Entity\Helper".
<?php namespace MyBundle\Entity; class Helper { // .... public function Cos() { return $this->getDoctrine()->getManager()->createQuery("zapytanie")->getResult(); } }
Prosze o pomoc.