當前位置: 首頁>>代碼示例>>PHP>>正文


PHP PropelObjectCollection::clear方法代碼示例

本文整理匯總了PHP中PropelObjectCollection::clear方法的典型用法代碼示例。如果您正苦於以下問題:PHP PropelObjectCollection::clear方法的具體用法?PHP PropelObjectCollection::clear怎麽用?PHP PropelObjectCollection::clear使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在PropelObjectCollection的用法示例。


在下文中一共展示了PropelObjectCollection::clear方法的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: removeOrganization

 /**
  * Remove a Organization object to this object
  * through the plugin_organization cross reference table.
  *
  * @param Organization $organization The PluginOrganization object to relate
  * @return Plugin The current object (for fluent API support)
  */
 public function removeOrganization(Organization $organization)
 {
     if ($this->getOrganizations()->contains($organization)) {
         $this->collOrganizations->remove($this->collOrganizations->search($organization));
         if (null === $this->organizationsScheduledForDeletion) {
             $this->organizationsScheduledForDeletion = clone $this->collOrganizations;
             $this->organizationsScheduledForDeletion->clear();
         }
         $this->organizationsScheduledForDeletion[] = $organization;
     }
     return $this;
 }
開發者ID:elaOnMars,項目名稱:datawrapper,代碼行數:19,代碼來源:BasePlugin.php

示例2: removeJugadorMesa

 /**
  * @param	JugadorMesa $jugadorMesa The jugadorMesa object to remove.
  */
 public function removeJugadorMesa($jugadorMesa)
 {
     if ($this->getJugadorMesas()->contains($jugadorMesa)) {
         $this->collJugadorMesas->remove($this->collJugadorMesas->search($jugadorMesa));
         if (null === $this->jugadorMesasScheduledForDeletion) {
             $this->jugadorMesasScheduledForDeletion = clone $this->collJugadorMesas;
             $this->jugadorMesasScheduledForDeletion->clear();
         }
         $this->jugadorMesasScheduledForDeletion[] = $jugadorMesa;
         $jugadorMesa->setJugador(null);
     }
 }
開發者ID:kcornejo,項目名稱:usac,代碼行數:15,代碼來源:BaseJugador.php

示例3: removeTransaccion

 /**
  * @param	Transaccion $transaccion The transaccion object to remove.
  */
 public function removeTransaccion($transaccion)
 {
     if ($this->getTransaccions()->contains($transaccion)) {
         $this->collTransaccions->remove($this->collTransaccions->search($transaccion));
         if (null === $this->transaccionsScheduledForDeletion) {
             $this->transaccionsScheduledForDeletion = clone $this->collTransaccions;
             $this->transaccionsScheduledForDeletion->clear();
         }
         $this->transaccionsScheduledForDeletion[] = $transaccion;
         $transaccion->setTipoTransaccion(null);
     }
 }
開發者ID:kcornejo,項目名稱:usac,代碼行數:15,代碼來源:BaseTipoTransaccion.php

示例4: removesfGuardUserPermission

 /**
  * @param	sfGuardUserPermission $sfGuardUserPermission The sfGuardUserPermission object to remove.
  */
 public function removesfGuardUserPermission($sfGuardUserPermission)
 {
     if ($this->getsfGuardUserPermissions()->contains($sfGuardUserPermission)) {
         $this->collsfGuardUserPermissions->remove($this->collsfGuardUserPermissions->search($sfGuardUserPermission));
         if (null === $this->sfGuardUserPermissionsScheduledForDeletion) {
             $this->sfGuardUserPermissionsScheduledForDeletion = clone $this->collsfGuardUserPermissions;
             $this->sfGuardUserPermissionsScheduledForDeletion->clear();
         }
         $this->sfGuardUserPermissionsScheduledForDeletion[] = $sfGuardUserPermission;
         $sfGuardUserPermission->setsfGuardPermission(null);
     }
 }
開發者ID:homer6,項目名稱:blank_altumo,代碼行數:15,代碼來源:BasesfGuardPermission.php

示例5: removeAfiliado

 /**
  * @param	Afiliado $afiliado The afiliado object to remove.
  */
 public function removeAfiliado($afiliado)
 {
     if ($this->getAfiliados()->contains($afiliado)) {
         $this->collAfiliados->remove($this->collAfiliados->search($afiliado));
         if (null === $this->afiliadosScheduledForDeletion) {
             $this->afiliadosScheduledForDeletion = clone $this->collAfiliados;
             $this->afiliadosScheduledForDeletion->clear();
         }
         $this->afiliadosScheduledForDeletion[] = $afiliado;
         $afiliado->setPlan(null);
     }
 }
開發者ID:nestorfsandoval,項目名稱:obraSocialSf,代碼行數:15,代碼來源:BasePlan.php

示例6: removeState

 /**
  * @param	State $state The state object to remove.
  */
 public function removeState($state)
 {
     if ($this->getStates()->contains($state)) {
         $this->collStates->remove($this->collStates->search($state));
         if (null === $this->statesScheduledForDeletion) {
             $this->statesScheduledForDeletion = clone $this->collStates;
             $this->statesScheduledForDeletion->clear();
         }
         $this->statesScheduledForDeletion[] = $state;
         $state->setCountry(null);
     }
 }
開發者ID:homer6,項目名稱:blank_altumo,代碼行數:15,代碼來源:BaseCountry.php

示例7: removeCountry

 /**
  * @param	Country $country The country object to remove.
  */
 public function removeCountry($country)
 {
     if ($this->getCountrys()->contains($country)) {
         $this->collCountrys->remove($this->collCountrys->search($country));
         if (null === $this->countrysScheduledForDeletion) {
             $this->countrysScheduledForDeletion = clone $this->collCountrys;
             $this->countrysScheduledForDeletion->clear();
         }
         $this->countrysScheduledForDeletion[] = $country;
         $country->setCurrency(null);
     }
 }
開發者ID:homer6,項目名稱:blank_altumo,代碼行數:15,代碼來源:BaseCurrency.php

示例8: removeSystemEventInstanceMessage

 /**
  * @param	SystemEventInstanceMessage $systemEventInstanceMessage The systemEventInstanceMessage object to remove.
  */
 public function removeSystemEventInstanceMessage($systemEventInstanceMessage)
 {
     if ($this->getSystemEventInstanceMessages()->contains($systemEventInstanceMessage)) {
         $this->collSystemEventInstanceMessages->remove($this->collSystemEventInstanceMessages->search($systemEventInstanceMessage));
         if (null === $this->systemEventInstanceMessagesScheduledForDeletion) {
             $this->systemEventInstanceMessagesScheduledForDeletion = clone $this->collSystemEventInstanceMessages;
             $this->systemEventInstanceMessagesScheduledForDeletion->clear();
         }
         $this->systemEventInstanceMessagesScheduledForDeletion[] = $systemEventInstanceMessage;
         $systemEventInstanceMessage->setSystemEventInstance(null);
     }
 }
開發者ID:homer6,項目名稱:blank_altumo,代碼行數:15,代碼來源:BaseSystemEventInstance.php

示例9: removeAgenda

 /**
  * @param	Agenda $agenda The agenda object to remove.
  */
 public function removeAgenda($agenda)
 {
     if ($this->getAgendas()->contains($agenda)) {
         $this->collAgendas->remove($this->collAgendas->search($agenda));
         if (null === $this->agendasScheduledForDeletion) {
             $this->agendasScheduledForDeletion = clone $this->collAgendas;
             $this->agendasScheduledForDeletion->clear();
         }
         $this->agendasScheduledForDeletion[] = $agenda;
         $agenda->setAtencion(null);
     }
 }
開發者ID:eddypre,項目名稱:Quirofano,代碼行數:15,代碼來源:BaseAtencion.php

示例10: removeFactura

 /**
  * @param	Factura $factura The factura object to remove.
  */
 public function removeFactura($factura)
 {
     if ($this->getFacturas()->contains($factura)) {
         $this->collFacturas->remove($this->collFacturas->search($factura));
         if (null === $this->facturasScheduledForDeletion) {
             $this->facturasScheduledForDeletion = clone $this->collFacturas;
             $this->facturasScheduledForDeletion->clear();
         }
         $this->facturasScheduledForDeletion[] = $factura;
         $factura->setTipoPago(null);
     }
 }
開發者ID:kcornejo,項目名稱:usac,代碼行數:15,代碼來源:BaseTipoPago.php

示例11: removeProducto

 /**
  * @param	Producto $producto The producto object to remove.
  */
 public function removeProducto($producto)
 {
     if ($this->getProductos()->contains($producto)) {
         $this->collProductos->remove($this->collProductos->search($producto));
         if (null === $this->productosScheduledForDeletion) {
             $this->productosScheduledForDeletion = clone $this->collProductos;
             $this->productosScheduledForDeletion->clear();
         }
         $this->productosScheduledForDeletion[] = $producto;
         $producto->setTipoPresentacion(null);
     }
 }
開發者ID:kcornejo,項目名稱:usac,代碼行數:15,代碼來源:BaseTipoPresentacion.php

示例12: removesfGuardUserGroup

 /**
  * @param	sfGuardUserGroup $sfGuardUserGroup The sfGuardUserGroup object to remove.
  */
 public function removesfGuardUserGroup($sfGuardUserGroup)
 {
     if ($this->getsfGuardUserGroups()->contains($sfGuardUserGroup)) {
         $this->collsfGuardUserGroups->remove($this->collsfGuardUserGroups->search($sfGuardUserGroup));
         if (null === $this->sfGuardUserGroupsScheduledForDeletion) {
             $this->sfGuardUserGroupsScheduledForDeletion = clone $this->collsfGuardUserGroups;
             $this->sfGuardUserGroupsScheduledForDeletion->clear();
         }
         $this->sfGuardUserGroupsScheduledForDeletion[] = $sfGuardUserGroup;
         $sfGuardUserGroup->setsfGuardGroup(null);
     }
 }
開發者ID:eddypre,項目名稱:Quirofano,代碼行數:15,代碼來源:BasesfGuardGroup.php

示例13: removeUser

 /**
  * Remove a User object to this object
  * through the user_skill cross reference table.
  *
  * @param User $user The UserSkill object to relate
  * @return Skill The current object (for fluent API support)
  */
 public function removeUser(User $user)
 {
     if ($this->getUsers()->contains($user)) {
         $this->collUsers->remove($this->collUsers->search($user));
         if (null === $this->usersScheduledForDeletion) {
             $this->usersScheduledForDeletion = clone $this->collUsers;
             $this->usersScheduledForDeletion->clear();
         }
         $this->usersScheduledForDeletion[] = $user;
     }
     return $this;
 }
開發者ID:nhallpot,項目名稱:CSCrew2015-back,代碼行數:19,代碼來源:BaseSkill.php

示例14: removeGastofacturacion

 /**
  * @param	Gastofacturacion $gastofacturacion The gastofacturacion object to remove.
  * @return Categoriagasto The current object (for fluent API support)
  */
 public function removeGastofacturacion($gastofacturacion)
 {
     if ($this->getGastofacturacions()->contains($gastofacturacion)) {
         $this->collGastofacturacions->remove($this->collGastofacturacions->search($gastofacturacion));
         if (null === $this->gastofacturacionsScheduledForDeletion) {
             $this->gastofacturacionsScheduledForDeletion = clone $this->collGastofacturacions;
             $this->gastofacturacionsScheduledForDeletion->clear();
         }
         $this->gastofacturacionsScheduledForDeletion[] = clone $gastofacturacion;
         $gastofacturacion->setCategoriagasto(null);
     }
     return $this;
 }
開發者ID:vicbaporu,項目名稱:ITRADE,代碼行數:17,代碼來源:BaseCategoriagasto.php

示例15: removeBanco

 /**
  * @param	Banco $banco The banco object to remove.
  * @return Conceptobanco The current object (for fluent API support)
  */
 public function removeBanco($banco)
 {
     if ($this->getBancos()->contains($banco)) {
         $this->collBancos->remove($this->collBancos->search($banco));
         if (null === $this->bancosScheduledForDeletion) {
             $this->bancosScheduledForDeletion = clone $this->collBancos;
             $this->bancosScheduledForDeletion->clear();
         }
         $this->bancosScheduledForDeletion[] = clone $banco;
         $banco->setConceptobanco(null);
     }
     return $this;
 }
開發者ID:jalvarez14,項目名稱:hva,代碼行數:17,代碼來源:BaseConceptobanco.php


注:本文中的PropelObjectCollection::clear方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。