<?php
 namespace App\ReportsData\Populate\Entity; class ImportedOrderSystem extends \App\ReportsData\Populate\GeneralAbstract { protected function getDbTableName() { global $DBTRd_importedOrderSystems; return $DBTRd_importedOrderSystems; } protected function getEntityFields() { $entity = \Entity\ExtResSystem::select($this->id); if (!$entity->recordExists()) { return null; } $return = [ 'id' => $this->id, 'deleted' => $entity->deleted, 'active' => $entity->active, 'code' => $entity->code, 'name' => $entity->name, ]; return $return; } } 