public function get($id)
    {
        try {
            $model = $this->connection
                ->select()
                ->from($this->dummy->getTableName())
                ->where($this->dummy->getIdField(), '=', $id)
                ->getOneClass($this->getModelClass());
        } catch (QueryBuilderException $e) {
            throw new MappingException($e->getMessage());
        }

        return $model;
    }
public function get($id)
    {
        try {
            $model = $this->connection
                ->select()
                ->from($this->dummy->getTableName())
                ->where($this->dummy->getIdField(), '=', $id)
                ->getOneClass($this->getModelClass());
        } catch (QueryBuilderException $e) {
            throw new MappingException($e->getMessage());
        }

        return $model;
    }
public function get ( $ id ) { try { $ model = $ this -> connection -> select ( ) -> from ( $ this -> dummy -> getTableName ( ) ) -> where ( $ this -> dummy -> getIdField ( ) , '=' , $ id ) -> getOneClass ( $ this -> getModelClass ( ) ) ; } catch ( QueryBuilderException $ e ) { throw new MappingException ( $ e -> getMessage ( ) ) ; } return $ model ; }
Return the entity with the ID in the parameter

@param int|string $id

@return Model
@throws MappingException If the object with the given ID is not found
Return the entity with the ID in the parameter