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