@@ -4,21 +4,16 @@ |
||
4 | 4 | |
5 | 5 | use Symfony\Component\HttpFoundation\JsonResponse; |
6 | 6 | use Symfony\Component\HttpFoundation\Response; |
7 | - |
|
8 | 7 | use Doctrine\ORM\EntityNotFoundException; |
9 | - |
|
10 | 8 | use FOS\RestBundle\Controller\Annotations\NamePrefix; |
11 | 9 | use FOS\RestBundle\Routing\ClassResourceInterface; |
12 | 10 | use FOS\RestBundle\Util\Codes; |
13 | - |
|
14 | 11 | use Nelmio\ApiDocBundle\Annotation\ApiDoc; |
15 | - |
|
16 | 12 | use Oro\Bundle\SecurityBundle\Annotation\AclAncestor; |
17 | 13 | use Oro\Bundle\SecurityBundle\Annotation\Acl; |
18 | 14 | use Oro\Bundle\AddressBundle\Entity\AbstractTypedAddress; |
19 | 15 | use Oro\Bundle\SoapBundle\Controller\Api\Rest\RestController; |
20 | 16 | use Oro\Bundle\SecurityBundle\Exception\ForbiddenException; |
21 | - |
|
22 | 17 | use OroCRM\Bundle\MagentoBundle\Entity\Address; |
23 | 18 | use OroCRM\Bundle\MagentoBundle\Entity\Customer; |
24 | 19 | use OroCRM\Bundle\MagentoBundle\Entity\Manager\CustomerApiEntityManager; |
@@ -3,14 +3,11 @@ |
||
3 | 3 | namespace OroCRM\Bundle\MagentoBundle\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\QueryParam; |
9 | 8 | use FOS\RestBundle\Routing\ClassResourceInterface; |
10 | 9 | use FOS\RestBundle\Controller\Annotations\RouteResource; |
11 | - |
|
12 | 10 | use Nelmio\ApiDocBundle\Annotation\ApiDoc; |
13 | - |
|
14 | 11 | use Oro\Bundle\SecurityBundle\Annotation\Acl; |
15 | 12 | use Oro\Bundle\SecurityBundle\Annotation\AclAncestor; |
16 | 13 | use Oro\Bundle\SoapBundle\Controller\Api\Rest\RestController; |
@@ -3,21 +3,16 @@ |
||
3 | 3 | namespace OroCRM\Bundle\MagentoBundle\Controller\Api\Rest; |
4 | 4 | |
5 | 5 | use Doctrine\ORM\EntityNotFoundException; |
6 | - |
|
7 | 6 | use Symfony\Component\HttpFoundation\JsonResponse; |
8 | 7 | use Symfony\Component\HttpFoundation\Response; |
9 | - |
|
10 | 8 | use FOS\RestBundle\Controller\Annotations\NamePrefix; |
11 | 9 | use FOS\RestBundle\Routing\ClassResourceInterface; |
12 | 10 | use FOS\RestBundle\Util\Codes; |
13 | - |
|
14 | 11 | use Nelmio\ApiDocBundle\Annotation\ApiDoc; |
15 | - |
|
16 | 12 | use Oro\Bundle\SecurityBundle\Annotation\Acl; |
17 | 13 | use Oro\Bundle\SecurityBundle\Annotation\AclAncestor; |
18 | 14 | use Oro\Bundle\SoapBundle\Controller\Api\Rest\RestController; |
19 | 15 | use Oro\Bundle\SecurityBundle\Exception\ForbiddenException; |
20 | - |
|
21 | 16 | use OroCRM\Bundle\MagentoBundle\Entity\Order; |
22 | 17 | use OroCRM\Bundle\MagentoBundle\Entity\Manager\OrderApiEntityManager; |
23 | 18 | use OroCRM\Bundle\MagentoBundle\Entity\OrderAddress; |
@@ -3,21 +3,16 @@ |
||
3 | 3 | namespace OroCRM\Bundle\MagentoBundle\Controller\Api\Rest; |
4 | 4 | |
5 | 5 | use Doctrine\ORM\EntityNotFoundException; |
6 | - |
|
7 | 6 | use Symfony\Component\HttpFoundation\JsonResponse; |
8 | 7 | use Symfony\Component\HttpFoundation\Response; |
9 | - |
|
10 | 8 | use FOS\RestBundle\Controller\Annotations\NamePrefix; |
11 | 9 | use FOS\RestBundle\Routing\ClassResourceInterface; |
12 | 10 | use FOS\RestBundle\Util\Codes; |
13 | - |
|
14 | 11 | use Nelmio\ApiDocBundle\Annotation\ApiDoc; |
15 | - |
|
16 | 12 | use Oro\Bundle\SecurityBundle\Annotation\Acl; |
17 | 13 | use Oro\Bundle\SecurityBundle\Annotation\AclAncestor; |
18 | 14 | use Oro\Bundle\SoapBundle\Controller\Api\Rest\RestController; |
19 | 15 | use Oro\Bundle\SecurityBundle\Exception\ForbiddenException; |
20 | - |
|
21 | 16 | use OroCRM\Bundle\MagentoBundle\Entity\Order; |
22 | 17 | use OroCRM\Bundle\MagentoBundle\Entity\Manager\OrderApiEntityManager; |
23 | 18 | use OroCRM\Bundle\MagentoBundle\Entity\OrderItem; |
@@ -3,10 +3,8 @@ |
||
3 | 3 | namespace OroCRM\Bundle\MagentoBundle\Controller\Dashboard; |
4 | 4 | |
5 | 5 | use Symfony\Bundle\FrameworkBundle\Controller\Controller; |
6 | - |
|
7 | 6 | use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route; |
8 | 7 | use Sensio\Bundle\FrameworkExtraBundle\Configuration\Template; |
9 | - |
|
10 | 8 | use Oro\Bundle\ChartBundle\Model\ChartViewBuilder; |
11 | 9 | use Oro\Bundle\DashboardBundle\Model\WidgetConfigs; |
12 | 10 | use Oro\Bundle\WorkflowBundle\Model\WorkflowManager; |
@@ -4,13 +4,10 @@ |
||
4 | 4 | |
5 | 5 | use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route; |
6 | 6 | use Sensio\Bundle\FrameworkExtraBundle\Configuration\Template; |
7 | - |
|
8 | 7 | use Symfony\Component\HttpFoundation\JsonResponse; |
9 | 8 | use Symfony\Bundle\FrameworkBundle\Controller\Controller; |
10 | - |
|
11 | 9 | use Oro\Bundle\SecurityBundle\Annotation\Acl; |
12 | 10 | use Oro\Bundle\SecurityBundle\Annotation\AclAncestor; |
13 | - |
|
14 | 11 | use OroCRM\Bundle\MagentoBundle\Entity\Customer; |
15 | 12 | use OroCRM\Bundle\MagentoBundle\Entity\NewsletterSubscriber; |
16 | 13 |
@@ -353,7 +353,7 @@ |
||
353 | 353 | } |
354 | 354 | |
355 | 355 | /** |
356 | - * @param CartItem[]|Collection $cartItems |
|
356 | + * @param Collection $cartItems |
|
357 | 357 | */ |
358 | 358 | public function setCartItems(Collection $cartItems) |
359 | 359 | { |
@@ -5,7 +5,6 @@ discard block |
||
5 | 5 | use Doctrine\ORM\Mapping as ORM; |
6 | 6 | use Doctrine\Common\Collections\Collection; |
7 | 7 | use Doctrine\Common\Collections\ArrayCollection; |
8 | - |
|
9 | 8 | use Oro\Bundle\OrganizationBundle\Entity\Organization; |
10 | 9 | use Oro\Bundle\UserBundle\Entity\User; |
11 | 10 | use Oro\Bundle\EmailBundle\Entity\Email; |
@@ -15,7 +14,6 @@ discard block |
||
15 | 14 | use Oro\Bundle\LocaleBundle\Model\LastNameInterface; |
16 | 15 | use Oro\Bundle\EntityConfigBundle\Metadata\Annotation\Config; |
17 | 16 | use Oro\Bundle\EntityConfigBundle\Metadata\Annotation\ConfigField; |
18 | - |
|
19 | 17 | use OroCRM\Bundle\CallBundle\Entity\Call; |
20 | 18 | use OroCRM\Bundle\MagentoBundle\Model\ExtendCart; |
21 | 19 | use OroCRM\Bundle\SalesBundle\Entity\Opportunity; |
@@ -655,7 +655,7 @@ |
||
655 | 655 | } |
656 | 656 | |
657 | 657 | /** |
658 | - * @return string |
|
658 | + * @return double |
|
659 | 659 | */ |
660 | 660 | public function getVat() |
661 | 661 | { |
@@ -5,14 +5,12 @@ |
||
5 | 5 | use Doctrine\Common\Collections\ArrayCollection; |
6 | 6 | use Doctrine\Common\Collections\Collection; |
7 | 7 | use Doctrine\ORM\Mapping as ORM; |
8 | - |
|
9 | 8 | use Oro\Bundle\AddressBundle\Entity\AbstractAddress; |
10 | 9 | use Oro\Bundle\DataAuditBundle\Metadata\Annotation as Oro; |
11 | 10 | use Oro\Bundle\EntityConfigBundle\Metadata\Annotation\Config; |
12 | 11 | use Oro\Bundle\EntityConfigBundle\Metadata\Annotation\ConfigField; |
13 | 12 | use Oro\Bundle\OrganizationBundle\Entity\Organization; |
14 | 13 | use Oro\Bundle\UserBundle\Entity\User; |
15 | - |
|
16 | 14 | use OroCRM\Bundle\AccountBundle\Entity\Account; |
17 | 15 | use OroCRM\Bundle\AnalyticsBundle\Model\RFMAwareInterface; |
18 | 16 | use OroCRM\Bundle\AnalyticsBundle\Model\RFMAwareTrait; |
@@ -3,9 +3,7 @@ |
||
3 | 3 | namespace OroCRM\Bundle\MagentoBundle\Entity\Manager; |
4 | 4 | |
5 | 5 | use Doctrine\ORM\QueryBuilder; |
6 | - |
|
7 | 6 | use Oro\Bundle\SoapBundle\Entity\Manager\ApiEntityManager; |
8 | - |
|
9 | 7 | use OroCRM\Bundle\MagentoBundle\Entity\Address; |
10 | 8 | |
11 | 9 | class CustomerAddressApiEntityManager extends ApiEntityManager |