1) be sure you have added your class' model parameter to config.yml, as described in Sylius documentation;
2) be sure you do not use old parent class somewhere else in config.yml - for example, this will cause error below. Do not forget to change it as new class:
2) be sure you do not use old parent class somewhere else in config.yml - for example, this will cause error below. Do not forget to change it as new class:
sylius_resource:
resources:
sylius.accountant:
classes:
model: AppBundle\Entity\Order
sylius.worker:
classes:
model: AppBundle\Entity\Order