Esempio n. 1
0
 /**
  * Gets referenced Row instance
  *
  * @param string $table
  * @param string|null $viaColumn
  * @param Filtering|null $filtering
  * @return Row|null
  */
 public function referenced($table, $viaColumn = null, Filtering $filtering = null)
 {
     if (array_key_exists($viaColumn, $this->referencedRows)) {
         return $this->referencedRows[$viaColumn];
     }
     return $this->result->getReferencedRow($this->id, $table, $viaColumn, $filtering);
 }
Esempio n. 2
0
 /**
  * Gets referenced Row instance
  *
  * @param string $table
  * @param string|null $viaColumn
  * @param Filtering|null $filtering
  * @return Row|null
  */
 public function referenced($table, $viaColumn = null, Filtering $filtering = null)
 {
     if (isset($this->referencedRows[$viaColumn])) {
         return $this->referencedRows[$viaColumn];
     }
     return $this->result->getReferencedRow($this->id, $table, $viaColumn, $filtering);
 }