Fix code blocks
This commit is contained in:
parent
6f56dbe395
commit
bd30a04d0d
@ -29,6 +29,7 @@ the filters. The ``SQLFilter#getParameter()`` function takes care of the
|
|||||||
proper quoting of parameters.
|
proper quoting of parameters.
|
||||||
|
|
||||||
.. code-block:: php
|
.. code-block:: php
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
namespace Example;
|
namespace Example;
|
||||||
use Doctrine\ORM\Mapping\ClassMetaData,
|
use Doctrine\ORM\Mapping\ClassMetaData,
|
||||||
@ -53,6 +54,7 @@ Configuration
|
|||||||
Filter classes are added to the configuration as following:
|
Filter classes are added to the configuration as following:
|
||||||
|
|
||||||
.. code-block:: php
|
.. code-block:: php
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
$config->addFilter("locale", "\Doctrine\Tests\ORM\Functional\MyLocaleFilter");
|
$config->addFilter("locale", "\Doctrine\Tests\ORM\Functional\MyLocaleFilter");
|
||||||
|
|
||||||
@ -69,6 +71,7 @@ will retrieve the filter object. You can set the filter parameters on that
|
|||||||
object.
|
object.
|
||||||
|
|
||||||
.. code-block:: php
|
.. code-block:: php
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
$filter = $em->getFilters()->enable("locale");
|
$filter = $em->getFilters()->enable("locale");
|
||||||
$filter->setParameter('locale', 'en');
|
$filter->setParameter('locale', 'en');
|
||||||
|
Loading…
Reference in New Issue
Block a user