public function load($where)
    {
        $where = self::processWhere($where);

        $old_primary_key = $this->getPrimaryKey();

        $database = self::getDatabase();
        $data = $database->get(static::TABLE, static::COLUMNS, $where);
        if ($data) {
            $this->reset();
            $this->data = $data;
            if ($old_primary_key) {
                $this->managerUpdate($old_primary_key);
            } else {
                $this->managerExport();
            }
            return true;
        }

        return false;
    }
public function load($where)
    {
        $where = self::processWhere($where);

        $old_primary_key = $this->getPrimaryKey();

        $database = self::getDatabase();
        $data = $database->get(static::TABLE, static::COLUMNS, $where);
        if ($data) {
            $this->reset();
            $this->data = $data;
            if ($old_primary_key) {
                $this->managerUpdate($old_primary_key);
            } else {
                $this->managerExport();
            }
            return true;
        }

        return false;
    }
public function load ( $ where ) { $ where = self :: processWhere ( $ where ) ; $ old_primary_key = $ this -> getPrimaryKey ( ) ; $ database = self :: getDatabase ( ) ; $ data = $ database -> get ( static :: TABLE , static :: COLUMNS , $ where ) ; if ( $ data ) { $ this -> reset ( ) ; $ this -> data = $ data ; if ( $ old_primary_key ) { $ this -> managerUpdate ( $ old_primary_key ) ; } else { $ this -> managerExport ( ) ; } return true ; } return false ; }
Loads a row from Table into the model

@param mixed $where Value for Primary Key or \Medoo\Medoo where clause

@return boolean For success or failure

@throws \InvalidArgumentException @see processWhere()
Loads a row from Table into the model