private function mainConstruct($key = null, $fail = false)
    {
        $this->getModel();
        $this->getTable();
        $this->columns();
        $this->key();
        if (!is_null($key)) {
            $this->struct($key, $fail);
            $this->_state = CRUD::UPDATE_STAT;
        } else {
            $this->_state = CRUD::CREATE_STAT;
        }
    }
private function mainConstruct($key = null, $fail = false)
    {
        $this->getModel();
        $this->getTable();
        $this->columns();
        $this->key();
        if (!is_null($key)) {
            $this->struct($key, $fail);
            $this->_state = CRUD::UPDATE_STAT;
        } else {
            $this->_state = CRUD::CREATE_STAT;
        }
    }
private function mainConstruct ( $ key = null , $ fail = false ) { $ this -> getModel ( ) ; $ this -> getTable ( ) ; $ this -> columns ( ) ; $ this -> key ( ) ; if ( ! is_null ( $ key ) ) { $ this -> struct ( $ key , $ fail ) ; $ this -> _state = CRUD :: UPDATE_STAT ; } else { $ this -> _state = CRUD :: CREATE_STAT ; } }
the main constructor to search that from database.

@param int  $key
@param bool $fail
the main constructor to search that from database .