source/Core/Model/BaseModel.php
public function assignRecord($select)
    {
        $record = $this->getRecordByQuery($select);

        if ($record != false && $record->count() > 0) {
            $this->assign($record->fields);
            return true;
        }

        return false;
    }
public function assignRecord($select)
    {
        $record = $this->getRecordByQuery($select);

        if ($record != false && $record->count() > 0) {
            $this->assign($record->fields);
            return true;
        }

        return false;
    }
public function assignRecord ( $ select ) { $ record = $ this -> getRecordByQuery ( $ select ) ; if ( $ record != false && $ record -> count ( ) > 0 ) { $ this -> assign ( $ record -> fields ) ; return true ; } return false ; }
Performs SQL query, assigns record field values to object. Returns true on success.

@param string $select SQL statement

@return bool
Performs SQL query assigns record field values to object . Returns true on success .