title: Doctrine Order OneToMany collection
body: <p>Hello i am trying to order doctrine collection by multiple fields</p>
  
  <p>tried something like this</p>
  
  <pre><code>  /**
       * @var Collection
       * @ORM\OrderBy({"date" = "ASC","TimeBegin" = "ASC"})
       * @ORM\OneToMany(targetEntity="Schedule", mappedBy="event")
       */
      protected $schedules;
  </code></pre>
  
  <p>This code isn't working </p>
  
  <p>Date field is in format "1927-12-01"
  timeBegin "00:13:01"</p>
  
  <p>This is my query</p>
  
  <pre><code> public function getAppointmentDetails(int $eventId): ?Event
      {
  
          $eventAlias = 'event';
          /** @var EventQueryBuilder $queryBuilder */
          $queryBuilder = $this-&gt;createQueryBuilder($eventAlias);
  
          $queryBuilder-&gt;select($eventAlias)
              -&gt;whereEventId($eventId)
              -&gt;withRoom()
              -&gt;withService()
              -&gt;withSchedulesAndInstructorsOrderedByDateAndTime();
  
  
          $appointmentDetails = $queryBuilder-&gt;getQuery()-&gt;getOneOrNullResult();
  
          return $appointmentDetails;
      }
  </code></pre>
  
  <p>and my method withSchedulesAndInstructorsOrderedByDateAndTime</p>
  
  <pre><code> /**
       * With Schedules And Instructors Ordered by Date and Time
       * @return EventQueryBuilder
       */
      public function withSchedulesAndInstructorsOrderedByDateAndTime() : EventQueryBuilder
      {
          $this-&gt;join($this-&gt;getRootAliases()[0] . '.schedules', 'sc');
          $this-&gt;join('sc' . '.instructors', 'in');
  
          return $this;
      }
  </code></pre>
  
  <p>Thing is is if i add orderBy my instructor collection will be empty</p>