<?php
namespace App\Form\Input; class Select_AgencyOffice extends \Engine\Form\Input\Select { protected function determinePossibleValues() { $basObj = new \App\EntityList\Offices(); $basObj->setColumns(['name', 'iataCode', 'countryCode',]); $basObj->setOrderBy('name', 'ASC'); $basEx = $basObj->getExecution(); $vals = []; foreach($basEx as $ba) { $baDet = $ba['name']; $vals[$ba['id']] = $baDet; } return $vals; } } 