Granada\ORM::_create_instance_from_row PHP Method

_create_instance_from_row() protected method

Create an ORM instance from the given row (an associative array of data fetched from the database)
protected _create_instance_from_row ( $row )
    protected function _create_instance_from_row($row)
    {
        $instance = static::for_table($this->_table_name, $this->_connection_name);
        $instance->use_id_column($this->_instance_id_column);
        $instance->hydrate($row);
        return $instance;
    }
ORM