1
나는 DBAL 연결에 대한 사용자 정의 랩퍼를 작성하려고하고 올바르게 설정 config.yml 파일을 가지고 Symfony2 교리 DBAL 래퍼 문제
그러나 나는 다음과 같은 오류가 점점 오전 : 그러나DBALException: The given 'wrapperClass' Some\Bundle\Doctrine\DBAL\ExtendedConnection
has to be a subtype of \Doctrine\DBAL\Connection.
을
namespace Some\Bundle\Doctrine\DBAL\ExtendedConnection;
use Doctrine\DBAL\Connection AS Connection;
class ExtendedConnection extends Connection
{
public function multipleResultSetsFetchAll()
{
$stmt = $this->getConnection();
do{
$results[] = $stmt->fetchAll();
}while($stmt->nextRowset());
return $results;
}
}
어떤 아이디어 : 내 클래스는 \Doctrine\DBAL\Connection
을 확장하고?