コード例 #1
0
ファイル: Ticket69.php プロジェクト: andreia/doctrine
 /**
  *
  * @param Relation $relation
  * @return void
  */
 public function removeRelation(Relation $relation)
 {
     /*@var $removed Relation */
     $removed = $this->relations->removeElement($relation);
     if ($removed !== null) {
         $removed->removeLemma();
     }
 }
コード例 #2
0
	/**
     * 
     * @param kateglo\application\models\Type $type
     * @return void
     */
	public function addType(Type $type){
        if (!$this->types->contains($type)) {
            $this->types[] = $type;
            $type->addLemma($this);
        }
    }