当前位置: 首页>>代码示例>>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;未经允许,请勿转载。