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