I would like to use the object in another "targetEntity" object, but it generated an error ...
Between this class:
namespace Tgb\CoreBundle\Entity; use Doctrine\ORM\Mapping as ORM; use Gedmo\Mapping\Annotation as Gedmo; use Symfony\Component\Validator\Constraints as Assert; class Website { private $blog;
And this one:
namespace Tgb\BlogBundle\Entity; use Doctrine\ORM\Mapping as ORM; use Gedmo\Mapping\Annotation as Gedmo; use Symfony\Component\Validator\Constraints as Assert; class Blog { private $website;
When I run the command line:
sf doctrine:schema:update --force
I get:
[Doctrine\ORM\Mapping\MappingException] The target-entity Tgb\BlogBunble\Entity\Blog cannot be found in 'Tgb\CoreBundle\Entity\Website#blog'.
Any suggestions?
source share