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