public function populate(array $data) {
        foreach ($data as $property => $value) {
            $property = \Util::_toCamel($property);
            $method = 'set' . ucfirst($property);
            if (method_exists($this, $method)) {
                $this->$method($value);
            }
            elseif (property_exists($this, $property)) {
                $this->$property = $value;
            }
        }

        return $this;
    }
public function populate(array $data) {
        foreach ($data as $property => $value) {
            $property = \Util::_toCamel($property);
            $method = 'set' . ucfirst($property);
            if (method_exists($this, $method)) {
                $this->$method($value);
            }
            elseif (property_exists($this, $property)) {
                $this->$property = $value;
            }
        }

        return $this;
    }
public function populate ( array $ data ) { foreach ( $ data as $ property => $ value ) { $ property = \ Util :: _toCamel ( $ property ) ; $ method = 'set' . ucfirst ( $ property ) ; if ( method_exists ( $ this , $ method ) ) { $ this -> $ method ( $ value ) ; } elseif ( property_exists ( $ this , $ property ) ) { $ this -> $ property = $ value ; } } return $ this ; }
Populates the properties of the model from the given data
@param array $data
@return \DBScribe\Row
Populates the properties of the model from the given data