public function testGetSetEntityCode()
 {
     $expected = uniqid('E');
     $this->assertEmpty($this->instance->getEntityCode());
     $this->assertInstanceOf(County::class, $this->instance->setEntityCode($expected));
     $this->assertEquals($expected, $this->instance->getEntityCode());
 }
 /**
  * @param County $county
  * @return array<County>
  */
 public function findCountyByNameAndEntityCode(County $county)
 {
     return $this->findBy(array('entityCode' => $county->getEntityCode(), 'countyName' => $county->getCountyName()));
 }
 /**
  * @param County $county
  * @return null|object
  */
 public function findByEntityCode(County $county)
 {
     return $this->entityManager->getRepository('TransformCore\\PHE\\LocalHealthAuthorityBundle\\Entity\\County')->findOneBy(array('entityCode' => $county->getEntityCode()));
 }