Ejemplo n.º 1
0
 /**
  * @param TicketComment $parent
  */
 protected function getChildren(TicketComment $parent)
 {
     $children = $parent->getMany('Children');
     if (count($children) > 0) {
         /** @var TicketComment $child */
         foreach ($children as $child) {
             $this->children[] = $child->get('id');
             $this->getChildren($child);
         }
     }
 }