Bonjour,
je débute sur Symfony 2 et j'ai installé "sonata page" dessus. je tombe sur l'erreur
Warning: class_parents(): Class Application\Sonata\PageBundle\Entity\Site does not exist and could not be loaded in /var/www/monsite/vendor/doctrine/lib/Doctrine/ORM/Mapping/ClassMetadataFactory.php line 223
alors que dans app/Application/Sonata/PageBundle/Entity j'ai une class site.php
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40
| <?php
/**
* This file is part of the <name> project.
*
* (c) <yourname> <youremail>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Application\Sonata\PageBundle\Entity;
use Sonata\PageBundle\Entity\BaseSite as BaseSite;
/**
* This file has been generated by the Sonata EasyExtends bundle ( http://sonata-project.org/easy-extends )
*
* References :
* working with object : http://www.doctrine-project.org/projects/orm/2.0/docs/reference/working-with-objects/en
*
* @author <yourname> <youremail>
*/
class Site extends BaseSite
{
/**
* @var integer $id
*/
protected $id;
/**
* Get id
*
* @return integer $id
*/
public function getId()
{
return $this->id;
}
} |
Quelqu'un a une solution?
Partager