public function toUpdatableObject($dbObject, $skip = array())
 {
     parent::toUpdatableObject($dbObject, $skip);
     if ($this->restrictions !== null && $this->restrictions instanceof KalturaRestrictionArray) {
         $dbObject->clearRestrictions();
         foreach ($this->restrictions as $restriction) {
             $dbRestriction = KalturaRestrictionFactory::getDbInstanceApiObject($restriction);
             $restriction->toObject($dbRestriction);
             $dbObject->setRestriction($dbRestriction);
         }
     }
 }
 public function toUpdatableObject($objectToFill, $propsToSkip = array())
 {
     parent::toUpdatableObject($objectToFill, $propsToSkip);
     if ($this->cropDimensions !== null) {
         $this->cropDimensions->toUpdatableObject($objectToFill);
     }
 }
 public function toUpdatableObject($dbObject, $skip = array())
 {
     /* @var $dbObject accessControl */
     $rules = $dbObject->getRules();
     foreach ($rules as $rule) {
         if (!$rule instanceof kAccessControlRestriction) {
             throw new KalturaAPIException(KalturaErrors::ACCESS_CONTROL_NEW_VERSION_UPDATE, $dbObject->getId());
         }
     }
     parent::toUpdatableObject($dbObject, $skip);
 }