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