public function buildModel($databaseResult = null)
    {
        $this->resetMappingOptions();

        if (empty($databaseResult)) return;

        $this->mapObject($databaseResult);
    }
public function buildModel($databaseResult = null)
    {
        $this->resetMappingOptions();

        if (empty($databaseResult)) return;

        $this->mapObject($databaseResult);
    }
public function buildModel ( $ databaseResult = null ) { $ this -> resetMappingOptions ( ) ; if ( empty ( $ databaseResult ) ) return ; $ this -> mapObject ( $ databaseResult ) ; }
Map the object to itself

@param \stdClass $databaseResult - The database result to map
@param bool $assignNonMappedColumns - Leave fields that aren't mapped in the output object
@param bool $destructiveMapping - Remove field from databaseResult upon mapping
@param string $fieldPrefix - An optional prefix for fields inc ase you are doing multiple joins
Map the object to itself