Nette\Database\Table\ActiveRow::offsetExists PHP Метод

offsetExists() публичный Метод

Tests if column exists.
public offsetExists ( $key ) : boolean
Результат boolean
    public function offsetExists($key)
    {
        return $this->__isset($key);
    }

Usage Example

 /**
  * 
  * @param \Nette\Database\Table\ActiveRow $row
  * @return \dbEntities\AbstractDBEntity
  */
 public function loadFromActiveRow(ActiveRow $row)
 {
     $referenceVar = $this->getReferenceArray();
     foreach ($referenceVar as $column => &$varRef) {
         if ($row->offsetExists($column)) {
             $varRef = $row[$column];
         }
     }
     return $this;
 }