public getRelated ( string $strKey ) : |
||
$strKey | string | The property name |
return | The model or a model collection if there are multiple rows |
public function getRelated($strKey)
{
if ($this->intIndex < 0) {
$this->first();
}
return $this->arrModels[$this->intIndex]->getRelated($strKey);
}