/** * Passenger's lodging auto complete * CODE: passenger_create */ public function executeAutoCompleteLodging() { if ($this->getRequestParameter('lodging')) { $this->keyword = $this->getRequestParameter('lodging'); $this->passengers = PassengerPeer::getByFirstLetterLodging($this->keyword); } }