@@ -3,7 +3,6 @@ discard block |
||
3 | 3 | namespace Oro\Bundle\EntityBundle\Controller\Api\Rest; |
4 | 4 | |
5 | 5 | use Symfony\Component\HttpFoundation\Response; |
6 | - |
|
7 | 6 | use FOS\RestBundle\Controller\Annotations\NamePrefix; |
8 | 7 | use FOS\RestBundle\Controller\Annotations\RouteResource; |
9 | 8 | use FOS\RestBundle\Controller\Annotations\QueryParam; |
@@ -11,9 +10,7 @@ discard block |
||
11 | 10 | use FOS\RestBundle\Controller\FOSRestController; |
12 | 11 | use FOS\RestBundle\Routing\ClassResourceInterface; |
13 | 12 | use FOS\RestBundle\Util\Codes; |
14 | - |
|
15 | 13 | use Nelmio\ApiDocBundle\Annotation\ApiDoc; |
16 | - |
|
17 | 14 | use Oro\Bundle\EntityBundle\Provider\EntityFieldProvider; |
18 | 15 | use Oro\Bundle\EntityBundle\Exception\InvalidEntityException; |
19 | 16 |
@@ -312,7 +312,7 @@ discard block |
||
312 | 312 | * @param string $entityName |
313 | 313 | * @param string $id |
314 | 314 | * |
315 | - * @return array |
|
315 | + * @return JsonResponse |
|
316 | 316 | * |
317 | 317 | * @Route( |
318 | 318 | * "/delete/{entityName}/item/{id}", |
@@ -350,7 +350,7 @@ discard block |
||
350 | 350 | * |
351 | 351 | * @param string $permission |
352 | 352 | * @param string $entityName |
353 | - * @return bool |
|
353 | + * @return boolean|null |
|
354 | 354 | * @throws AccessDeniedException |
355 | 355 | */ |
356 | 356 | private function checkAccess($permission, $entityName) |
@@ -6,12 +6,9 @@ |
||
6 | 6 | use Symfony\Component\HttpFoundation\JsonResponse; |
7 | 7 | use Symfony\Component\HttpFoundation\Request; |
8 | 8 | use Symfony\Component\Security\Core\Exception\AccessDeniedException; |
9 | - |
|
10 | 9 | use FOS\RestBundle\Util\Codes; |
11 | - |
|
12 | 10 | use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route; |
13 | 11 | use Sensio\Bundle\FrameworkExtraBundle\Configuration\Template; |
14 | - |
|
15 | 12 | use Oro\Bundle\EntityBundle\ORM\OroEntityManager; |
16 | 13 | use Oro\Bundle\EntityConfigBundle\Config\ConfigInterface; |
17 | 14 | use Oro\Bundle\EntityConfigBundle\Config\Id\FieldConfigId; |
@@ -3,7 +3,6 @@ |
||
3 | 3 | namespace Oro\Bundle\EntityBundle\EventListener; |
4 | 4 | |
5 | 5 | use Symfony\Bundle\FrameworkBundle\Routing\Router; |
6 | - |
|
7 | 6 | use Oro\Bundle\DataGridBundle\Datagrid\DatagridInterface; |
8 | 7 | use Oro\Bundle\DataGridBundle\Event\BuildBefore; |
9 | 8 | use Oro\Bundle\DataGridBundle\Datasource\ResultRecord; |
@@ -3,7 +3,6 @@ |
||
3 | 3 | namespace Oro\Bundle\EntityBundle\EventListener; |
4 | 4 | |
5 | 5 | use Symfony\Component\Translation\TranslatorInterface; |
6 | - |
|
7 | 6 | use Oro\Bundle\EntityConfigBundle\Config\Config; |
8 | 7 | use Oro\Bundle\EntityConfigBundle\Config\ConfigManager; |
9 | 8 | use Oro\Bundle\EntityConfigBundle\Provider\ConfigProvider; |
@@ -3,7 +3,6 @@ |
||
3 | 3 | namespace Oro\Bundle\EntityBundle\Form\Handler; |
4 | 4 | |
5 | 5 | use Doctrine\Common\Persistence\ManagerRegistry; |
6 | - |
|
7 | 6 | use Oro\Bundle\FormBundle\Autocomplete\SearchHandler; |
8 | 7 | |
9 | 8 | class EntitySelectHandler extends SearchHandler |
@@ -6,7 +6,6 @@ |
||
6 | 6 | use Doctrine\DBAL\Schema\ForeignKeyConstraint; |
7 | 7 | use Doctrine\DBAL\Schema\Schema; |
8 | 8 | use Doctrine\DBAL\Types\Type; |
9 | - |
|
10 | 9 | use Oro\Bundle\EntityExtendBundle\Migration\Schema\ExtendColumn; |
11 | 10 | use Oro\Bundle\MigrationBundle\Migration\Extension\DatabasePlatformAwareInterface; |
12 | 11 | use Oro\Bundle\MigrationBundle\Migration\QueryBag; |
@@ -4,9 +4,7 @@ |
||
4 | 4 | |
5 | 5 | use Doctrine\Common\Persistence\ManagerRegistry; |
6 | 6 | use Doctrine\ORM\Mapping\ClassMetadata; |
7 | - |
|
8 | 7 | use Symfony\Component\HttpKernel\CacheWarmer\WarmableInterface; |
9 | - |
|
10 | 8 | use Oro\Bundle\EntityBundle\Exception\EntityAliasNotFoundException; |
11 | 9 | use Oro\Bundle\EntityBundle\Exception\RuntimeException; |
12 | 10 | use Oro\Bundle\EntityBundle\Model\EntityAlias; |
@@ -247,7 +247,7 @@ |
||
247 | 247 | * Specifies an item that is to be returned in the query result. |
248 | 248 | * Replaces any previously specified selections, if any. |
249 | 249 | * |
250 | - * @param mixed $select The selection expressions. |
|
250 | + * @param null|string $select The selection expressions. |
|
251 | 251 | * |
252 | 252 | * @return self |
253 | 253 | */ |
@@ -3,9 +3,7 @@ |
||
3 | 3 | namespace Oro\Bundle\EntityBundle\Provider; |
4 | 4 | |
5 | 5 | use Doctrine\Common\Inflector\Inflector; |
6 | - |
|
7 | 6 | use Symfony\Component\Translation\TranslatorInterface; |
8 | - |
|
9 | 7 | use Oro\Bundle\EntityConfigBundle\Config\ConfigManager; |
10 | 8 | |
11 | 9 | abstract class AbstractEntityClassNameProvider |