src/AbstractEntity.php
public function mapTo($property)
    {
        if (!$this->mappingTo) {
            $this->mappingTo = array_flip($this->mapping);
        }

        return isset($this->mappingTo[$property]) ? $this->mappingTo[$property] : $property;
    }
public function mapTo($property)
    {
        if (!$this->mappingTo) {
            $this->mappingTo = array_flip($this->mapping);
        }

        return isset($this->mappingTo[$property]) ? $this->mappingTo[$property] : $property;
    }
public function mapTo ( $ property ) { if ( ! $ this -> mappingTo ) { $ this -> mappingTo = array_flip ( $ this -> mapping ) ; } return isset ( $ this -> mappingTo [ $ property ] ) ? $ this -> mappingTo [ $ property ] : $ property ; }
Map property name to DB field name

@param $property

@return mixed
Map property name to DB field name