Example #1
0
 /**
  * Add a protein object reference to geneProteins
  *
  * @uses \bcGen\MainBundle\Entity\Protein::setProteinGene()
  * 
  * @param \bcGen\MainBundle\Entity\Protein $protein
  *         	
  * @return Gene
  */
 public function addGeneProteins(\bcGen\MainBundle\Entity\Protein $protein)
 {
     $this->geneProteins[] = $protein;
     $protein->setProteinGene($this);
     return $this;
 }
Example #2
0
 /**
  * Test the setProteinGene method from the Protein class
  *
  * @uses \bcGen\MainBundle\Entity\Protein::setProteinGene()
  */
 public function testSetProteinGene()
 {
     echo "\n********************Test SetProteinGene()***************************************************\n";
     $this->protein->setProteinGene($this->gene);
     $this->assertEquals($this->gene, $this->protein->getProteinGene());
 }