本文整理汇总了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;
}
示例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);
}
}
示例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);
}
}
示例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);
}
}
示例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);
}
}
示例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);
}
}
示例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);
}
}
示例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);
}
}
示例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);
}
}
示例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);
}
}
示例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);
}
}
示例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);
}
}
示例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;
}
示例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;
}
示例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;
}