<?php
 namespace App\ReportsData\ChangesQueue\Entity; class DocumentSeries extends \App\ReportsData\ChangesQueue\GeneralAbstract { protected function getOriginalDbTableName() { global $DBTDocumentsNumbers; return $DBTDocumentsNumbers; } protected function stopByEntityDetails(\App\Entity\GeneralAbstract $entity) { $entityFields = $entity->getFields(); if (!array_key_exists('code', $entityFields) and $entity->getOperation()!='delete') { return true; } return parent::stopByEntityDetails($entity); } } 