Browse Source

...fix...

Luciano Andrade 7 years ago
parent
commit
ab71d48052
2 changed files with 4 additions and 0 deletions
  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(