public function testGetData()
 {
     $this->string($this->genericEntityManager->getData('recolnat', 'localisation', 'continent', 15248883))->isEqualTo('Europe');
     $this->string($this->genericEntityManager->getData('recolnat', 'localisation', 'continent', 15248883))->isEqualTo('Europe');
     $this->string($this->genericEntityManager->getData('recolnat', 'specimen', 'created', '4C05E1FD273543A580B019586085D4D2'))->isEqualTo('2015-08-20 00:00:00');
     $this->exception(function () {
         $this->genericEntityManager->getData('recolnat', 'localisation', 'foobar', 15248883);
     })->isInstanceOf('Exception');
 }
 /**
  *
  * @param string $className
  * @param array  $arrayEntity
  * @return array
  */
 public function getChoicesForEntity($className, $arrayEntity)
 {
     $returnChoices = [];
     if (array_key_exists($this->genericEntityManager->getIdentifierName($className), $arrayEntity)) {
         $relationId = $arrayEntity[$this->genericEntityManager->getIdentifierName($className)];
         foreach ($this->getChoices() as $row) {
             if ($row['className'] == $className && $row['relationId'] == $relationId) {
                 $returnChoices[] = $row;
             }
         }
     }
     return $returnChoices;
 }