当前位置: 首页>>代码示例>>PHP>>正文


PHP PropelObjectCollection::remove方法代码示例

本文整理汇总了PHP中PropelObjectCollection::remove方法的典型用法代码示例。如果您正苦于以下问题:PHP PropelObjectCollection::remove方法的具体用法?PHP PropelObjectCollection::remove怎么用?PHP PropelObjectCollection::remove使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在PropelObjectCollection的用法示例。


在下文中一共展示了PropelObjectCollection::remove方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: addArticulo

 /**
  * Method called to associate a Articulo object to this object
  * through the Articulo foreign key attribute.
  *
  * @param    Articulo $l Articulo
  * @return Tipo The current object (for fluent API support)
  */
 public function addArticulo(Articulo $l)
 {
     if ($this->collArticulos === null) {
         $this->initArticulos();
         $this->collArticulosPartial = true;
     }
     if (!in_array($l, $this->collArticulos->getArrayCopy(), true)) {
         // only add it if the **same** object is not already associated
         $this->doAddArticulo($l);
         if ($this->articulosScheduledForDeletion and $this->articulosScheduledForDeletion->contains($l)) {
             $this->articulosScheduledForDeletion->remove($this->articulosScheduledForDeletion->search($l));
         }
     }
     return $this;
 }
开发者ID:jalvarez14,项目名称:hva,代码行数:22,代码来源:BaseTipo.php

示例2: addLinkBarangRak

 /**
  * Method called to associate a LinkBarangRak object to this object
  * through the LinkBarangRak foreign key attribute.
  *
  * @param    LinkBarangRak $l LinkBarangRak
  * @return Rak The current object (for fluent API support)
  */
 public function addLinkBarangRak(LinkBarangRak $l)
 {
     if ($this->collLinkBarangRaks === null) {
         $this->initLinkBarangRaks();
         $this->collLinkBarangRaksPartial = true;
     }
     if (!in_array($l, $this->collLinkBarangRaks->getArrayCopy(), true)) {
         // only add it if the **same** object is not already associated
         $this->doAddLinkBarangRak($l);
         if ($this->linkBarangRaksScheduledForDeletion and $this->linkBarangRaksScheduledForDeletion->contains($l)) {
             $this->linkBarangRaksScheduledForDeletion->remove($this->linkBarangRaksScheduledForDeletion->search($l));
         }
     }
     return $this;
 }
开发者ID:nurhidayatullah,项目名称:inventory,代码行数:22,代码来源:BaseRak.php

示例3: addDetailTransaksi

 /**
  * Method called to associate a DetailTransaksi object to this object
  * through the DetailTransaksi foreign key attribute.
  *
  * @param    DetailTransaksi $l DetailTransaksi
  * @return Transaksi The current object (for fluent API support)
  */
 public function addDetailTransaksi(DetailTransaksi $l)
 {
     if ($this->collDetailTransaksis === null) {
         $this->initDetailTransaksis();
         $this->collDetailTransaksisPartial = true;
     }
     if (!in_array($l, $this->collDetailTransaksis->getArrayCopy(), true)) {
         // only add it if the **same** object is not already associated
         $this->doAddDetailTransaksi($l);
         if ($this->detailTransaksisScheduledForDeletion and $this->detailTransaksisScheduledForDeletion->contains($l)) {
             $this->detailTransaksisScheduledForDeletion->remove($this->detailTransaksisScheduledForDeletion->search($l));
         }
     }
     return $this;
 }
开发者ID:nurhidayatullah,项目名称:inventory,代码行数:22,代码来源:BaseTransaksi.php

示例4: addGastofacturacion

 /**
  * Method called to associate a Gastofacturacion object to this object
  * through the Gastofacturacion foreign key attribute.
  *
  * @param    Gastofacturacion $l Gastofacturacion
  * @return Categoriagasto The current object (for fluent API support)
  */
 public function addGastofacturacion(Gastofacturacion $l)
 {
     if ($this->collGastofacturacions === null) {
         $this->initGastofacturacions();
         $this->collGastofacturacionsPartial = true;
     }
     if (!in_array($l, $this->collGastofacturacions->getArrayCopy(), true)) {
         // only add it if the **same** object is not already associated
         $this->doAddGastofacturacion($l);
         if ($this->gastofacturacionsScheduledForDeletion and $this->gastofacturacionsScheduledForDeletion->contains($l)) {
             $this->gastofacturacionsScheduledForDeletion->remove($this->gastofacturacionsScheduledForDeletion->search($l));
         }
     }
     return $this;
 }
开发者ID:vicbaporu,项目名称:ITRADE,代码行数:22,代码来源:BaseCategoriagasto.php

示例5: addExpedientehistorial

 /**
  * Method called to associate a Expedientehistorial object to this object
  * through the Expedientehistorial foreign key attribute.
  *
  * @param    Expedientehistorial $l Expedientehistorial
  * @return Servicioestado The current object (for fluent API support)
  */
 public function addExpedientehistorial(Expedientehistorial $l)
 {
     if ($this->collExpedientehistorials === null) {
         $this->initExpedientehistorials();
         $this->collExpedientehistorialsPartial = true;
     }
     if (!in_array($l, $this->collExpedientehistorials->getArrayCopy(), true)) {
         // only add it if the **same** object is not already associated
         $this->doAddExpedientehistorial($l);
         if ($this->expedientehistorialsScheduledForDeletion and $this->expedientehistorialsScheduledForDeletion->contains($l)) {
             $this->expedientehistorialsScheduledForDeletion->remove($this->expedientehistorialsScheduledForDeletion->search($l));
         }
     }
     return $this;
 }
开发者ID:vicbaporu,项目名称:ITRADE,代码行数:22,代码来源:BaseServicioestado.php

示例6: addPropiedadvalor

 /**
  * Method called to associate a Propiedadvalor object to this object
  * through the Propiedadvalor foreign key attribute.
  *
  * @param    Propiedadvalor $l Propiedadvalor
  * @return Propiedad The current object (for fluent API support)
  */
 public function addPropiedadvalor(Propiedadvalor $l)
 {
     if ($this->collPropiedadvalors === null) {
         $this->initPropiedadvalors();
         $this->collPropiedadvalorsPartial = true;
     }
     if (!in_array($l, $this->collPropiedadvalors->getArrayCopy(), true)) {
         // only add it if the **same** object is not already associated
         $this->doAddPropiedadvalor($l);
         if ($this->propiedadvalorsScheduledForDeletion and $this->propiedadvalorsScheduledForDeletion->contains($l)) {
             $this->propiedadvalorsScheduledForDeletion->remove($this->propiedadvalorsScheduledForDeletion->search($l));
         }
     }
     return $this;
 }
开发者ID:jalvarez14,项目名称:hva,代码行数:22,代码来源:BasePropiedad.php

示例7: addCajachicadetalle

 /**
  * Method called to associate a Cajachicadetalle object to this object
  * through the Cajachicadetalle foreign key attribute.
  *
  * @param    Cajachicadetalle $l Cajachicadetalle
  * @return Gasto The current object (for fluent API support)
  */
 public function addCajachicadetalle(Cajachicadetalle $l)
 {
     if ($this->collCajachicadetalles === null) {
         $this->initCajachicadetalles();
         $this->collCajachicadetallesPartial = true;
     }
     if (!in_array($l, $this->collCajachicadetalles->getArrayCopy(), true)) {
         // only add it if the **same** object is not already associated
         $this->doAddCajachicadetalle($l);
         if ($this->cajachicadetallesScheduledForDeletion and $this->cajachicadetallesScheduledForDeletion->contains($l)) {
             $this->cajachicadetallesScheduledForDeletion->remove($this->cajachicadetallesScheduledForDeletion->search($l));
         }
     }
     return $this;
 }
开发者ID:jalvarez14,项目名称:hva,代码行数:22,代码来源:BaseGasto.php

示例8: addMedicoespecialidad

 /**
  * Method called to associate a Medicoespecialidad object to this object
  * through the Medicoespecialidad foreign key attribute.
  *
  * @param    Medicoespecialidad $l Medicoespecialidad
  * @return Especialidad The current object (for fluent API support)
  */
 public function addMedicoespecialidad(Medicoespecialidad $l)
 {
     if ($this->collMedicoespecialidads === null) {
         $this->initMedicoespecialidads();
         $this->collMedicoespecialidadsPartial = true;
     }
     if (!in_array($l, $this->collMedicoespecialidads->getArrayCopy(), true)) {
         // only add it if the **same** object is not already associated
         $this->doAddMedicoespecialidad($l);
         if ($this->medicoespecialidadsScheduledForDeletion and $this->medicoespecialidadsScheduledForDeletion->contains($l)) {
             $this->medicoespecialidadsScheduledForDeletion->remove($this->medicoespecialidadsScheduledForDeletion->search($l));
         }
     }
     return $this;
 }
开发者ID:jalvarez14,项目名称:hva,代码行数:22,代码来源:BaseEspecialidad.php

示例9: addUser

 /**
  * Associate 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 addUser(User $user)
 {
     if ($this->collUsers === null) {
         $this->initUsers();
     }
     if (!$this->collUsers->contains($user)) {
         // only add it if the **same** object is not already associated
         $this->doAddUser($user);
         $this->collUsers[] = $user;
         if ($this->usersScheduledForDeletion and $this->usersScheduledForDeletion->contains($user)) {
             $this->usersScheduledForDeletion->remove($this->usersScheduledForDeletion->search($user));
         }
     }
     return $this;
 }
开发者ID:nhallpot,项目名称:CSCrew2015-back,代码行数:22,代码来源:BaseSkill.php

示例10: addCourt

 /**
  * Associate a Court object to this object
  * through the player_court cross reference table.
  *
  * @param  Court $court The PlayerCourt object to relate
  * @return Player The current object (for fluent API support)
  */
 public function addCourt(Court $court)
 {
     if ($this->collCourts === null) {
         $this->initCourts();
     }
     if (!$this->collCourts->contains($court)) {
         // only add it if the **same** object is not already associated
         $this->doAddCourt($court);
         $this->collCourts[] = $court;
         if ($this->courtsScheduledForDeletion and $this->courtsScheduledForDeletion->contains($court)) {
             $this->courtsScheduledForDeletion->remove($this->courtsScheduledForDeletion->search($court));
         }
     }
     return $this;
 }
开发者ID:takisp,项目名称:bookingCourt,代码行数:22,代码来源:BasePlayer.php

示例11: addNewsletterMailing

 /**
  * Method called to associate a NewsletterMailing object to this object
  * through the NewsletterMailing foreign key attribute.
  *
  * @param    NewsletterMailing $l NewsletterMailing
  * @return Newsletter The current object (for fluent API support)
  */
 public function addNewsletterMailing(NewsletterMailing $l)
 {
     if ($this->collNewsletterMailings === null) {
         $this->initNewsletterMailings();
         $this->collNewsletterMailingsPartial = true;
     }
     if (!in_array($l, $this->collNewsletterMailings->getArrayCopy(), true)) {
         // only add it if the **same** object is not already associated
         $this->doAddNewsletterMailing($l);
         if ($this->newsletterMailingsScheduledForDeletion and $this->newsletterMailingsScheduledForDeletion->contains($l)) {
             $this->newsletterMailingsScheduledForDeletion->remove($this->newsletterMailingsScheduledForDeletion->search($l));
         }
     }
     return $this;
 }
开发者ID:rapila,项目名称:plugin-newsletter,代码行数:22,代码来源:BaseNewsletter.php

示例12: addSubscriberGroupMembership

 /**
  * Method called to associate a SubscriberGroupMembership object to this object
  * through the SubscriberGroupMembership foreign key attribute.
  *
  * @param    SubscriberGroupMembership $l SubscriberGroupMembership
  * @return Subscriber The current object (for fluent API support)
  */
 public function addSubscriberGroupMembership(SubscriberGroupMembership $l)
 {
     if ($this->collSubscriberGroupMemberships === null) {
         $this->initSubscriberGroupMemberships();
         $this->collSubscriberGroupMembershipsPartial = true;
     }
     if (!in_array($l, $this->collSubscriberGroupMemberships->getArrayCopy(), true)) {
         // only add it if the **same** object is not already associated
         $this->doAddSubscriberGroupMembership($l);
         if ($this->subscriberGroupMembershipsScheduledForDeletion and $this->subscriberGroupMembershipsScheduledForDeletion->contains($l)) {
             $this->subscriberGroupMembershipsScheduledForDeletion->remove($this->subscriberGroupMembershipsScheduledForDeletion->search($l));
         }
     }
     return $this;
 }
开发者ID:rapila,项目名称:plugin-newsletter,代码行数:22,代码来源:BaseSubscriber.php

示例13: addReferenceRelatedByUpdatedBy

 /**
  * Method called to associate a Reference object to this object
  * through the Reference foreign key attribute.
  *
  * @param    Reference $l Reference
  * @return User The current object (for fluent API support)
  */
 public function addReferenceRelatedByUpdatedBy(Reference $l)
 {
     if ($this->collReferencesRelatedByUpdatedBy === null) {
         $this->initReferencesRelatedByUpdatedBy();
         $this->collReferencesRelatedByUpdatedByPartial = true;
     }
     if (!in_array($l, $this->collReferencesRelatedByUpdatedBy->getArrayCopy(), true)) {
         // only add it if the **same** object is not already associated
         $this->doAddReferenceRelatedByUpdatedBy($l);
         if ($this->referencesRelatedByUpdatedByScheduledForDeletion and $this->referencesRelatedByUpdatedByScheduledForDeletion->contains($l)) {
             $this->referencesRelatedByUpdatedByScheduledForDeletion->remove($this->referencesRelatedByUpdatedByScheduledForDeletion->search($l));
         }
     }
     return $this;
 }
开发者ID:rapila,项目名称:cms-base,代码行数:22,代码来源:BaseUser.php

示例14: addOrdencompra

 /**
  * Method called to associate a Ordencompra object to this object
  * through the Ordencompra foreign key attribute.
  *
  * @param    Ordencompra $l Ordencompra
  * @return Proveedor The current object (for fluent API support)
  */
 public function addOrdencompra(Ordencompra $l)
 {
     if ($this->collOrdencompras === null) {
         $this->initOrdencompras();
         $this->collOrdencomprasPartial = true;
     }
     if (!in_array($l, $this->collOrdencompras->getArrayCopy(), true)) {
         // only add it if the **same** object is not already associated
         $this->doAddOrdencompra($l);
         if ($this->ordencomprasScheduledForDeletion and $this->ordencomprasScheduledForDeletion->contains($l)) {
             $this->ordencomprasScheduledForDeletion->remove($this->ordencomprasScheduledForDeletion->search($l));
         }
     }
     return $this;
 }
开发者ID:jalvarez14,项目名称:hva,代码行数:22,代码来源:BaseProveedor.php

示例15: addLanguageObjectHistory

 /**
  * Method called to associate a LanguageObjectHistory object to this object
  * through the LanguageObjectHistory foreign key attribute.
  *
  * @param    LanguageObjectHistory $l LanguageObjectHistory
  * @return ContentObject The current object (for fluent API support)
  */
 public function addLanguageObjectHistory(LanguageObjectHistory $l)
 {
     if ($this->collLanguageObjectHistorys === null) {
         $this->initLanguageObjectHistorys();
         $this->collLanguageObjectHistorysPartial = true;
     }
     if (!in_array($l, $this->collLanguageObjectHistorys->getArrayCopy(), true)) {
         // only add it if the **same** object is not already associated
         $this->doAddLanguageObjectHistory($l);
         if ($this->languageObjectHistorysScheduledForDeletion and $this->languageObjectHistorysScheduledForDeletion->contains($l)) {
             $this->languageObjectHistorysScheduledForDeletion->remove($this->languageObjectHistorysScheduledForDeletion->search($l));
         }
     }
     return $this;
 }
开发者ID:rapila,项目名称:cms-base,代码行数:22,代码来源:BaseContentObject.php


注:本文中的PropelObjectCollection::remove方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。