public function selectOneEntity (int $key)
    {
        try {
            $this->_prepare['selectOneEntity']->bindParam(1, $key, \PDO::PARAM_INT);
            $this->_prepare['selectOneEntity']->execute();
            
            $r = $this->_prepare['selectOneEntity']->fetchAll(\PDO::FETCH_NUM);
            $this->_prepare['selectOneEntity']->closeCursor();
            if (!empty($r)) :
                return $this->_dataContextObject->dataCallBack( $r[0][1] );
            else :
                return false;
            endif;
        } catch (\Exception $e) {
            throw $e;
        }
    }
public function selectOneEntity (int $key)
    {
        try {
            $this->_prepare['selectOneEntity']->bindParam(1, $key, \PDO::PARAM_INT);
            $this->_prepare['selectOneEntity']->execute();
            
            $r = $this->_prepare['selectOneEntity']->fetchAll(\PDO::FETCH_NUM);
            $this->_prepare['selectOneEntity']->closeCursor();
            if (!empty($r)) :
                return $this->_dataContextObject->dataCallBack( $r[0][1] );
            else :
                return false;
            endif;
        } catch (\Exception $e) {
            throw $e;
        }
    }
public function selectOneEntity ( int $ key ) { try { $ this -> _prepare [ 'selectOneEntity' ] -> bindParam ( 1 , $ key , \ PDO :: PARAM_INT ) ; $ this -> _prepare [ 'selectOneEntity' ] -> execute ( ) ; $ r = $ this -> _prepare [ 'selectOneEntity' ] -> fetchAll ( \ PDO :: FETCH_NUM ) ; $ this -> _prepare [ 'selectOneEntity' ] -> closeCursor ( ) ; if ( ! empty ( $ r ) ) : return $ this -> _dataContextObject -> dataCallBack ( $ r [ 0 ] [ 1 ] ) ; else : return false ; endif ; } catch ( \ Exception $ e ) { throw $ e ; } }
return false if Entity does not exist.
return false if Entity does not exist .