Example #1
0
 /**
  * Set feature
  * 
  * @param VIB\Bundle\BioBundle\Entity\DNA\Abstracts\Feature $feature 
  * @param boolean $recurse 
  */
 public function setFeature(Feature $feature, $recurse = true)
 {
     if ($recurse === true) {
         if ($feature != null) {
             $feature->addTag($this, false);
         } elseif ($this->feature != null) {
             $this->feature->removeTag($this, false);
         }
     }
     $this->feature = $feature;
 }