Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Declaration of Application\Sonata\PageBundle\Entity\Page::addChildren() must be compatible with that of Sonata\PageBundle\Model\PageInterface::addChildren() #9

Closed
ghost opened this issue Aug 29, 2011 · 2 comments

Comments

@ghost
Copy link

ghost commented Aug 29, 2011

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!

@xdissent
Copy link

xdissent commented Sep 1, 2011

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.

@ghost
Copy link
Author

ghost commented Sep 8, 2011

xdissent thanks you very much!!!

@ghost ghost closed this as completed Sep 8, 2011
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant