src/main/php/DataDo/Data/Repository.php
public function get($id)
    {
        $idName = ucfirst($this->idProperty->getName());
        return $this->__call("getBy$idName", array($id));
    }
public function get($id)
    {
        $idName = ucfirst($this->idProperty->getName());
        return $this->__call("getBy$idName", array($id));
    }
public function get ( $ id ) { $ idName = ucfirst ( $ this -> idProperty -> getName ( ) ) ; return $ this -> __call ( "getBy$idName" , array ( $ id ) ) ; }
Get an entity by it's idProperty value.
@param mixed $id the id value
@return mixed the entity
@throws ErrorException
Get an entity by it s idProperty value .