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


PHP PropelObjectCollection::search方法代码示例

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


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

示例1: 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

示例2: 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

示例3: 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

示例4: 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

示例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: 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

示例7: 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

示例8: 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

示例9: 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

示例10: 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

示例11: testSearchMatchesSimilarNewObjects

 public function testSearchMatchesSimilarNewObjects()
 {
     $col = new PropelObjectCollection();
     $b1 = new Book();
     $b1->setTitle('Bar');
     $b2 = clone $b1;
     $this->assertFalse($col->search($b1), 'search() returns false on an empty collection');
     $col = new PropelObjectCollection(array($b1));
     $this->assertTrue(0 === $col->search($b1));
     $this->assertTrue(0 === $col->search($b2));
 }
开发者ID:kalaspuffar,项目名称:php-orm-benchmark,代码行数:11,代码来源:PropelObjectCollectionTest.php

示例12: 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

示例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: 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


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