我伸出SonataUser與SonataEasyExtends所以我現在有一個Application/Sonata/UserBundle
擴展SonataUser - 更新制定者干將
我已經在模型中添加一個字段Application/Sonata/UserBundle/Resources/config/doctrine/User.orm.xml
試圖與
$ php app/console doctrine:generate:entities Application/Sonata/UserBundle/Entity/User
更新制定者&干將
似乎進展順利。現在試圖更新數據庫
$ php app/console doctrine:schema:update --force
我得到
PHP Fatal error: Access level to Application\Sonata\UserBundle\Entity\User::$groups must be protected (as in class FOS\UserBundle\Entity\User) or weaker in /home/glide/bouygues/src/Application/Sonata/UserBundle/Entity/User.php on line 26
因此問題是:我應該如何正確地在Entity/User.php
更新干將&制定者,應該我得重用EasyExtends?