code: private function postSerialize()
      {
          if ($this->schedules == null) {
              $this->schedules = new ArrayCollection();
          }
          if($this->status != null && $this->enumStatus == null) {
              $this->getStatus();
          }
      }
docs: Ensures that the member variable $schedules is an ArrayCollection after deserialization
  
  @JMS\PostDeserialize