Granada\ORM::__construct PHP Method

__construct() protected method

Use the ORM::for_table factory method instead.
protected __construct ( $table_name, $data = [], $connection_name = self::DEFAULT_CONNECTION )
    protected function __construct($table_name, $data = array(), $connection_name = self::DEFAULT_CONNECTION)
    {
        $this->_table_name = $table_name;
        $this->_data = $data;
        $this->_connection_name = $connection_name;
        // Set the flag as config dictates
        $this->_associative_results = self::$_config[$this->_connection_name]['find_many_primary_id_as_key'];
        self::_setup_db_config($connection_name);
    }
ORM