Skip to content

Cannot delete a device #803

@fracz

Description

@fracz
 app.ERROR: API Error {"exceptionMessage":"A new entity was found through the relationship 'SuplaBundle\\Entity\\Main\\SceneOperation#schedule' that was not configured to casca
de persist operations for entity: Proxies\_CG_\\SuplaBundle\\Entity\\Main\\Schedule@2279. To solve this issue: Either explicitly call EntityManager#persist() on this unknown entity or configure
cascade persist this association in the mapping for example @ManyToOne(..,cascade={\"persist\"}). If you cannot find out which entity causes the problem implement 'SuplaBundle\\Entity\\Main\\Schedu
le#__toString()' to get a clue.","trace":"#0 /var/www/cloud.supla.org/vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php(3780): Doctrine\\ORM\\ORMInvalidArgumentException::newEntitiesFoundThroughR
elationships()\n#1 /var/www/cloud.supla.org/vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php(416): Doctrine\\ORM\\UnitOfWork->assertThatThereAreNoUnintentionallyNonPersistedAssociations()\n#2 /v
ar/www/cloud.supla.org/vendor/doctrine/orm/lib/Doctrine/ORM/EntityManager.php(403): Doctrine\\ORM\\UnitOfWork->commit()\n#3 /var/www/cloud.supla.org/var/cache/prod/ContainerKKX2q6b/EntityManager_9a
5be93.php(88): Doctrine\\ORM\\EntityManager->flush()\n#4 /var/www/cloud.supla.org/src/SuplaBundle/Model/Schedule/ScheduleManager.php(255): EntityManager_9a5be93->flush()\n#5 /var/www/cloud.supla.or
g/src/SuplaBundle/Model/Dependencies/ChannelDependencies.php(72): SuplaBundle\\Model\\Schedule\\ScheduleManager->delete()\n#6 /var/www/cloud.supla.org/src/SuplaBundle/Controller/Api/IODeviceControl
ler.php(431): SuplaBundle\\Model\\Dependencies\\ChannelDependencies->clearDependencies()\n#7 /var/www/cloud.supla.org/vendor/doctrine/orm/lib/Doctrine/ORM/EntityManager.php(272): SuplaBundle\\Contr
oller\\Api\\IODeviceController->SuplaBundle\\Controller\\Api\\{closure}()\n#8 /var/www/cloud.supla.org/var/cache/prod/ContainerKKX2q6b/EntityManager_9a5be93.php(43): Doctrine\\ORM\\EntityManager->w
rapInTransaction()\n#9 /var/www/cloud.supla.org/src/SuplaBundle/Model/Transactional.php(35): EntityManager_9a5be93->wrapInTransaction()\n#10 /var/www/cloud.supla.org/src/SuplaBundle/Controller/Api/
IODeviceController.php(437): SuplaBundle\\Controller\\Api\\IODeviceController->transactional()\n#11 /var/www/cloud.supla.org/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php(1
69): SuplaBundle\\Controller\\Api\\IODeviceController->deleteIodeviceAction()\n#12 /var/www/cloud.supla.org/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php(81): Symfony\\Comp
onent\\HttpKernel\\HttpKernel->handleRaw()\n#13 /var/www/cloud.supla.org/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/Kernel.php(201): Symfony\\Component\\HttpKernel\\HttpKernel->handle(
)\n#14 /var/www/cloud.supla.org/web/index.php(24): Symfony\\Component\\HttpKernel\\Kernel->handle()\n#15 {main}"} []

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions