Model/Job.php
private function postSerialize()
    {
        if ($this->schedules == null) {
            $this->schedules = new ArrayCollection();
        }
        if($this->status != null && $this->enumStatus == null) {
            $this->getStatus();
        }
    }
private function postSerialize()
    {
        if ($this->schedules == null) {
            $this->schedules = new ArrayCollection();
        }
        if($this->status != null && $this->enumStatus == null) {
            $this->getStatus();
        }
    }
Ensures that the member variable $schedules is an ArrayCollection after deserialization

@JMS\PostDeserialize