static function add(TVEIpTVChannel $object, $account, $serviceAccount = null, $tariffPlanNamePeriod = null, $dateFrom = null, $dateTo = null, $calcPeriod = null)
 {
     $result;
     $st = \Billing\Core::getEm()->getConnection()->prepare("exec ServiceAccountPeriodObjectAdd :ID, :ServiceAccountID, :AccountNumber, :TariffPlanNamePeriodID, :ObjectID, :DateFrom, :DateTo, :CalcPeriod");
     $st->bindParam(":ID", $result, \PDO::PARAM_INT | \PDO::PARAM_INPUT_OUTPUT, 12);
     $st->bindValue(":ServiceAccountID", $serviceAccount ? $serviceAccount->getId() : null);
     $st->bindValue(":AccountNumber", $account ? $account->getNumber() : null);
     $st->bindValue(":TariffPlanNamePeriodID", $tariffPlanNamePeriod ? $tariffPlanNamePeriod->getId() : null);
     $st->bindValue(":ObjectID", $object->getId());
     $st->bindValue(":DateFrom", $dateFrom ? $dateFrom->format("Y-m-d H:i:s.u") : null);
     $st->bindValue(":DateTo", $dateTo ? $dateTo->format("Y-m-d H:i:s.u") : null);
     $st->bindValue(":CalcPeriod", $calcPeriod);
     $st->execute();
 }
 /**
  * {@inheritDoc}
  */
 public function getStatus()
 {
     $this->__initializer__ && $this->__initializer__->__invoke($this, 'getStatus', array());
     return parent::getStatus();
 }