You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Declaration of Application\Sonata\PageBundle\Entity\Page::addChildren() must be compatible with that of Sonata\PageBundle\Model\PageInterface::addChildren()
#9
Hi, I tried to use Sonata Page Bundle but I get some errors.
I read the installation file, and in this step "app/console sonata:page:update-core-routes"
i get
[PDOException]
SQLSTATE[42S02]: Base table or view not found: 1146 Table 'comunidad.page__page' doesn't exist
Well, I dont know what to do, then I run "php app/console doctrine:generate:entities Sonata" or "php app/console doctrine:generate:entities Application" and i get this errors:
PHP Fatal error: Access level to Sonata\PageBundle\Entity\BaseSnapshot::$createdAt must be protected (as in class Sonata\PageBundle\Model\Snapshot) or weaker in /var/www/comunidad/vendor/bundles/Sonata/PageBundle/Entity/BaseSnapshot.php on line 16
or this
Declaration of Application\Sonata\PageBundle\Entity\Page::addChildren() must be compatible with that of Sonata\PageBundle\Model\PageInterface::addChildren()
or some similar.
What I'm doing wrong. Can you help me?
Thanks!
The text was updated successfully, but these errors were encountered:
You don't want to app/console doctrine:generate:entities since the EasyExtendsBundle takes care of this for you. You just forgot to run app/console doctrine:schema:update --force and then you screwed up the mapped superclasses by running app/console doctrine:generate:entities on the PageBundle.
Hi, I tried to use Sonata Page Bundle but I get some errors.
I read the installation file, and in this step "app/console sonata:page:update-core-routes"
i get
[PDOException]
SQLSTATE[42S02]: Base table or view not found: 1146 Table 'comunidad.page__page' doesn't exist
Well, I dont know what to do, then I run "php app/console doctrine:generate:entities Sonata" or "php app/console doctrine:generate:entities Application" and i get this errors:
PHP Fatal error: Access level to Sonata\PageBundle\Entity\BaseSnapshot::$createdAt must be protected (as in class Sonata\PageBundle\Model\Snapshot) or weaker in /var/www/comunidad/vendor/bundles/Sonata/PageBundle/Entity/BaseSnapshot.php on line 16
or this
Declaration of Application\Sonata\PageBundle\Entity\Page::addChildren() must be compatible with that of Sonata\PageBundle\Model\PageInterface::addChildren()
or some similar.
What I'm doing wrong. Can you help me?
Thanks!
The text was updated successfully, but these errors were encountered: