protected function mapObject($databaseResult)
    {
        foreach ($databaseResult as $column => $value) {
            if (!empty($this->mapping[$column])) {
                list($variable, $modifier) = $this->splitVariableWithModifier($this->mapping[$column]);

                $this->$variable = $this->getMappedValue($databaseResult, $column, $this->mapping[$column]);
            } else {
                $this->$column = $value;
            }
        }
    }
protected function mapObject($databaseResult)
    {
        foreach ($databaseResult as $column => $value) {
            if (!empty($this->mapping[$column])) {
                list($variable, $modifier) = $this->splitVariableWithModifier($this->mapping[$column]);

                $this->$variable = $this->getMappedValue($databaseResult, $column, $this->mapping[$column]);
            } else {
                $this->$column = $value;
            }
        }
    }
protected function mapObject ( $ databaseResult ) { foreach ( $ databaseResult as $ column => $ value ) { if ( ! empty ( $ this -> mapping [ $ column ] ) ) { list ( $ variable , $ modifier ) = $ this -> splitVariableWithModifier ( $ this -> mapping [ $ column ] ) ; $ this -> $ variable = $ this -> getMappedValue ( $ databaseResult , $ column , $ this -> mapping [ $ column ] ) ; } else { $ this -> $ column = $ value ; } } }
Map a single object to this instance

@param \stdClass $databaseResult
Map a single object to this instance