Closed tomasyhy closed 4 years ago
Hi, @tomasyhy, could you please explain how you solved the problem? I have the same issue and can't get it to work. Thanks in advance.
Hi, if I remember correctly problem was with the incorrect User entity class. Check if you have correctly set "user" property in "sonata_core.yml" Here is my file:
sonata_user:
class:
group: AppBundle\Entity\Admin\Group
user: AppBundle\Entity\User
My AppBundle\Entity\User class extends Sonata\UserBundle\Entity\BaseUser
Hi @tomasyhy thanks for your quick response.
Unfortunately the "user" property was already set to the correct entity classes and both extend the sonata user bundle classes. So the root of the problem must be somewhere else. Maybe I can figure it out by myself this afternoon.
Hi! Someone could help ? I have the same problem.
Same problem here... please, help.
You should set classes in sonata_timeline
too (with user
):
spy_timeline:
drivers:
orm:
object_manager: doctrine.orm.entity_manager
classes:
query_builder: ~ # Spy\TimelineBundle\Driver\ORM\QueryBuilder\QueryBuilder
timeline: App\Entity\SonataTimelineTimeline
action: App\Entity\SonataTimelineAction
component: App\Entity\SonataTimelineComponent
action_component: App\Entity\SonataTimelineActionComponent
sonata_timeline:
manager_type: orm
class:
user: App\Entity\SonataUserUser
timeline: App\Entity\SonataTimelineTimeline
action: App\Entity\SonataTimelineAction
component: App\Entity\SonataTimelineComponent
action_component: App\Entity\SonataTimelineActionComponent
Environment
Sonata packages
Symfony packages
PHP version
Subject
Steps to reproduce
Actual results
Error occurs:
I followed by doc from https://sonata-project.org/bundles/timeline/3-x/doc/reference/installation.html I've seen similar topic https://github.com/sonata-project/SonataTimelineBundle/issues/30 But it doesn't help me. I have correct config files from doc:
sonata_timeline.yml
spy_timeline.yml
Any idea what can be wrong?