CommandEntities
в конструктор класса, где собираетесь его использовать, DI автоматически подставит и вызовет метод setFetcher
App\Dictionary\Validator\Fabric\Commands\CommandEntities:
calls:
- [setFetcher, ['@App\Dictionary\View\AbstractDictionaryFetcher']]
new App\Dictionary\Validator\Fabric\Commands\CommandEntities()
? Any calls to EntityManager::persist() or EntityManager::remove(), even in combination with the UnitOfWork API are strongly discouraged and don't work as expected outside the flush operation.
orm:
default_entity_manager: default
entity_managers:
default:
connection: default
mappings:
UserAddress:
is_bundle: false
type: annotation
dir: '%kernel.project_dir%/src/Entity/UserAddress'
prefix: 'App\Entity\UserAddress'
alias: UserAddress
customer:
connection: customer
mappings:
UserAddress:
is_bundle: false
type: annotation
dir: '%kernel.project_dir%/src/Entity/UserAddress'
prefix: 'App\Entity\UserAddress'
alias: UserAddress
referencedColumnName: 'id'
уProduct
должен совпадать сname: 'id'
уElement
. У вас будто бы не так