public function linkEntity($id, $link, $foreignId) { if ($id == $foreignId) { throw new Forbidden(); } return parent::linkEntity($id, $link, $foreignId); }