Ejemplo n.º 1
0
 /**
  * @return int
  */
 public function getDirectChildrenCount()
 {
     if ($this->isNew()) {
         return 0;
     }
     $ret = parent::getDirectChildrenCount();
     if (!is_null($ret)) {
         return $ret;
     }
     $c = KalturaCriteria::create(CuePointPeer::OM_CLASS);
     $c->add(CuePointPeer::PARENT_ID, $this->getId());
     $c->applyFilters();
     return $c->getRecordsCount();
 }