Code
Explorer
You are a developer and looking for Shopware projects?
Apply Now!
QueryOperatorValidator example
QueryOperatorValidator
$operatorValidator
= null
)
{
if
(
!
$config
->
getMetadataDriverImpl
(
)
)
{
throw
new
MissingMappingDriverImplementation
(
)
;
}
if
(
$eventManager
!== null &&
$conn
->
getEventManager
(
)
!==
$eventManager
)
{
throw
new
MismatchedEventManager
(
)
;
}
if
(
$operatorValidator
=== null
)
{
$operatorValidator
=
new
QueryOperatorValidator
(
)
;
}
return
new
self
(
$conn
,
$config
,
$operatorValidator
)
;
}
/** * @return DBALQueryBuilder */
public
function
getDBALQueryBuilder
(
)
{
return
new
DBALQueryBuilder
(
$this
->
getConnection
(
)
)
;
}