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