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;
        self::_setup_db_config($connection_name);
    }

Usage Example

 function __construct($id = NULL)
 {
     parent::__construct($id);
     // if($this->id!=true) {
     // $this->where("web_type_id",1);
     // }
 }
All Usage Examples Of ORM::__construct
ORM