Exemplo 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);
 }
Exemplo 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);
 }