public function refLink() { $m = $this->getModel(); $m->addCondition($this->their_field ?: $m->id_field, $this->referenceOurValue($m)); return $m; }