Bonjour,
je suis face à un étrange problème.
J'ai développé un site sur sf2, il tourne parfaitement en local.
Du coup je le met en ligne et là j'ai cette erreur :
Fatal error: Class 'Yug\Mainbundle\Repository\PortfolioSolutionRepository' not found in /var/www/monsite/vendor/doctrine/orm/lib/Doctrine/ORM/EntityManager.php on line 689
alors que tout se passe très bien en local.
voici mon code
l'entité:
le repository:
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17 <?php namespace Yug\MainBundle\Entity; use Doctrine\ORM\Mapping as ORM; use Gedmo\Mapping\Annotation as Gedmo; /** * PortfolioSolution * * @ORM\Table(name="portfolio_solution") * @ORM\Entity(repositoryClass="Yug\Mainbundle\Repository\PortfolioSolutionRepository") */ class PortfolioSolution { ...
le controller:
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13 <?php namespace Yug\Mainbundle\Repository; use Doctrine\ORM\EntityRepository; class PortfolioSolutionRepository extends EntityRepository { public function getSolutions() { ...
voilà si ça inspire quelqu'un ça m'aiderai bien, parce que là vraiment je vois pas.
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7 public function solutionsAction() { $em = $this->getDoctrine()->getEntityManager(); $solutions= $em->getRepository('YugMainBundle:PortfolioSolution')->getSolutions(); return array('solutions'=>$solutions); }
Merci d'avance pour vos lumières.
Partager