소스 검색

...fix...

Luciano Andrade 7 년 전
부모
커밋
ab71d48052
2개의 변경된 파일4개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      src/FTTHBundle/Entity/Profile.php
  2. 2 0
      src/FTTHBundle/Form/ONUType.php

+ 2 - 0
src/FTTHBundle/Entity/Profile.php

@@ -7,6 +7,7 @@ use Base\AdminBundle\Traits\TenancyIdTraitInterface;
 use Doctrine\ORM\Mapping as ORM;
 use ExtraDataBundle\Entity\Traits\ExtraDataTrait;
 use Symfony\Component\Validator\Constraints as Assert;
+use JMS\Serializer\Annotation as JMS;
 
 /**
  * @ORM\Table
@@ -52,6 +53,7 @@ class Profile implements TenancyIdTraitInterface
 
     /**
      * @ORM\OneToMany(targetEntity="ONU", mappedBy="profile", fetch="EXTRA_LAZY")
+     * @JMS\Exclude
      */
     protected $onus;
 

+ 2 - 0
src/FTTHBundle/Form/ONUType.php

@@ -41,6 +41,8 @@ class ONUType extends AbstractType
             ->add('nap')
             ->add('ponSerialNumber')
             ->add('clientId')
+           ->add('administrativeState')
+           ->add('transitionState')
             ->add('tenancyId');
 
         $builder->addEventListener(