@@ -44,7 +44,7 @@ |
||
44 | 44 | /** |
45 | 45 | * @param int $type |
46 | 46 | * |
47 | - * @return mixed |
|
47 | + * @return string|false |
|
48 | 48 | */ |
49 | 49 | private function getOperator($type) |
50 | 50 | { |
@@ -53,7 +53,7 @@ |
||
53 | 53 | /** |
54 | 54 | * @param string $type |
55 | 55 | * |
56 | - * @return bool |
|
56 | + * @return string|false |
|
57 | 57 | */ |
58 | 58 | private function getOperator($type) |
59 | 59 | { |
@@ -618,7 +618,7 @@ |
||
618 | 618 | * |
619 | 619 | * @param string $property |
620 | 620 | * |
621 | - * @return mixed |
|
621 | + * @return string |
|
622 | 622 | */ |
623 | 623 | protected function camelize($property) |
624 | 624 | { |
@@ -15,19 +15,15 @@ |
||
15 | 15 | use Doctrine\ORM\EntityManager; |
16 | 16 | use Sonata\DoctrineORMAdminBundle\Admin\FieldDescription; |
17 | 17 | use Sonata\DoctrineORMAdminBundle\Datagrid\ProxyQuery; |
18 | - |
|
19 | 18 | use Sonata\AdminBundle\Model\ModelManagerInterface; |
20 | 19 | use Sonata\AdminBundle\Admin\FieldDescriptionInterface; |
21 | 20 | use Sonata\AdminBundle\Datagrid\DatagridInterface; |
22 | 21 | use Sonata\AdminBundle\Datagrid\ProxyQueryInterface; |
23 | 22 | use Sonata\AdminBundle\Exception\ModelManagerException; |
24 | - |
|
25 | 23 | use Doctrine\ORM\QueryBuilder; |
26 | 24 | use Doctrine\DBAL\DBALException; |
27 | - |
|
28 | 25 | use Symfony\Component\Form\Exception\PropertyAccessDeniedException; |
29 | 26 | use Symfony\Bridge\Doctrine\RegistryInterface; |
30 | - |
|
31 | 27 | use Exporter\Source\DoctrineORMQuerySourceIterator; |
32 | 28 | |
33 | 29 | class ModelManager implements ModelManagerInterface |
@@ -53,7 +53,7 @@ |
||
53 | 53 | /** |
54 | 54 | * @param string $type |
55 | 55 | * |
56 | - * @return bool |
|
56 | + * @return string|false |
|
57 | 57 | */ |
58 | 58 | private function getOperator($type) |
59 | 59 | { |
@@ -14,13 +14,10 @@ |
||
14 | 14 | use Sonata\BlockBundle\Block\BlockContextInterface; |
15 | 15 | use Symfony\Component\HttpFoundation\Response; |
16 | 16 | use Symfony\Bundle\FrameworkBundle\Templating\EngineInterface; |
17 | - |
|
18 | 17 | use Sonata\AdminBundle\Form\FormMapper; |
19 | 18 | use Sonata\AdminBundle\Validator\ErrorElement; |
20 | - |
|
21 | 19 | use Sonata\BlockBundle\Model\BlockInterface; |
22 | 20 | use Sonata\BlockBundle\Block\BaseBlockService; |
23 | - |
|
24 | 21 | use SimpleThings\EntityAudit\AuditReader; |
25 | 22 | use Symfony\Component\OptionsResolver\OptionsResolverInterface; |
26 | 23 |
@@ -18,7 +18,6 @@ |
||
18 | 18 | use Sonata\AdminBundle\Builder\DatagridBuilderInterface; |
19 | 19 | use Sonata\AdminBundle\Guesser\TypeGuesserInterface; |
20 | 20 | use Sonata\AdminBundle\Filter\FilterFactoryInterface; |
21 | - |
|
22 | 21 | use Sonata\DoctrineORMAdminBundle\Datagrid\Pager; |
23 | 22 | use Symfony\Component\Form\FormFactory; |
24 | 23 |
@@ -14,13 +14,9 @@ |
||
14 | 14 | use Sonata\AdminBundle\Admin\AdminInterface; |
15 | 15 | use Sonata\AdminBundle\Admin\FieldDescriptionInterface; |
16 | 16 | use Sonata\AdminBundle\Builder\FormContractorInterface; |
17 | - |
|
18 | 17 | use Symfony\Component\Form\FormFactoryInterface; |
19 | - |
|
20 | 18 | use Doctrine\ORM\Mapping\ClassMetadataInfo; |
21 | 19 | |
22 | -use Sonata\DoctrineORMAdminBundle\Admin\FieldDescription; |
|
23 | - |
|
24 | 20 | class FormContractor implements FormContractorInterface |
25 | 21 | { |
26 | 22 | protected $fieldFactory; |
@@ -16,7 +16,6 @@ |
||
16 | 16 | use Sonata\AdminBundle\Admin\FieldDescriptionCollection; |
17 | 17 | use Sonata\AdminBundle\Builder\ListBuilderInterface; |
18 | 18 | use Sonata\AdminBundle\Guesser\TypeGuesserInterface; |
19 | - |
|
20 | 19 | use Doctrine\ORM\Mapping\ClassMetadataInfo; |
21 | 20 | |
22 | 21 | class ListBuilder implements ListBuilderInterface |
@@ -16,7 +16,6 @@ |
||
16 | 16 | use Sonata\AdminBundle\Admin\FieldDescriptionCollection; |
17 | 17 | use Sonata\AdminBundle\Builder\ShowBuilderInterface; |
18 | 18 | use Sonata\AdminBundle\Guesser\TypeGuesserInterface; |
19 | - |
|
20 | 19 | use Doctrine\ORM\Mapping\ClassMetadataInfo; |
21 | 20 | |
22 | 21 | class ShowBuilder implements ShowBuilderInterface |