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