示例#1
0
文件: Category.php 项目: r47717/ponny
 /**
  * Add tasks
  *
  * @param \AppBundle\Entity\Task $tasks
  * @return Category
  */
 public function addTask(\AppBundle\Entity\Task $task)
 {
     $this->tasks[] = $task;
     $task->addCategory($this);
     return $this;
 }