<?php
 namespace App\ReportsData\EntityFields; class BankOffice extends \App\ReportsData\EntityFields\GeneralAbstract { protected function getDbTableName() { global $DBTRd_bankOffices; return $DBTRd_bankOffices; } protected function getCustomValues($fieldName) { switch ($fieldName) { case 'bank': return new Bank($this->values['idBank']); default: return parent::getCustomValues($fieldName); } } } 