Exemplo n.º 1
0
 /**
  * Set sequence
  * 
  * @param VIB\Bundle\BioBundle\Entity\DNA\Abstracts\Sequence $sequence 
  * @param boolean $recurse 
  */
 public function setSequence(Sequence $sequence, $recurse = true)
 {
     if ($recurse === true) {
         if ($sequence != null) {
             $sequence->addFeature($this, false);
         } elseif ($this->sequence != null) {
             $this->sequence->removeFeature($this, false);
         }
     }
     $this->sequence = $sequence;
 }