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


PHP PropelObjectCollection::getId方法代码示例

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


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

示例1: filterByCorporation

 /**
  * Filter the query by a related Corporation object
  *
  * @param   Corporation|PropelObjectCollection $corporation The related object(s) to use as filter
  * @param     string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
  *
  * @return                 CourtQuery The current query, for fluid interface
  * @throws PropelException - if the provided filter is invalid.
  */
 public function filterByCorporation($corporation, $comparison = null)
 {
     if ($corporation instanceof Corporation) {
         return $this->addUsingAlias(CourtPeer::CORPORATION_ID, $corporation->getId(), $comparison);
     } elseif ($corporation instanceof PropelObjectCollection) {
         if (null === $comparison) {
             $comparison = Criteria::IN;
         }
         return $this->addUsingAlias(CourtPeer::CORPORATION_ID, $corporation->toKeyValue('PrimaryKey', 'Id'), $comparison);
     } else {
         throw new PropelException('filterByCorporation() only accepts arguments of type Corporation or PropelCollection');
     }
 }
开发者ID:takisp,项目名称:bookingCourt,代码行数:22,代码来源:BaseCourtQuery.php

示例2: filterByAccount

 /**
  * Filter the query by a related Account object
  *
  * @param   Account|PropelObjectCollection $account The related object(s) to use as filter
  * @param     string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
  *
  * @return                 PropertyQuery The current query, for fluid interface
  * @throws PropelException - if the provided filter is invalid.
  */
 public function filterByAccount($account, $comparison = null)
 {
     if ($account instanceof Account) {
         return $this->addUsingAlias(PropertyPeer::ACCOUNT_ID, $account->getId(), $comparison);
     } elseif ($account instanceof PropelObjectCollection) {
         if (null === $comparison) {
             $comparison = Criteria::IN;
         }
         return $this->addUsingAlias(PropertyPeer::ACCOUNT_ID, $account->toKeyValue('PrimaryKey', 'Id'), $comparison);
     } else {
         throw new PropelException('filterByAccount() only accepts arguments of type Account or PropelCollection');
     }
 }
开发者ID:dapepe,项目名称:tymio,代码行数:22,代码来源:BasePropertyQuery.php

示例3: filterByPlugin

 /**
  * Filter the query by a related Plugin object
  *
  * @param   Plugin|PropelObjectCollection $plugin The related object(s) to use as filter
  * @param     string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
  *
  * @return                 PluginDataQuery The current query, for fluid interface
  * @throws PropelException - if the provided filter is invalid.
  */
 public function filterByPlugin($plugin, $comparison = null)
 {
     if ($plugin instanceof Plugin) {
         return $this->addUsingAlias(PluginDataPeer::PLUGIN_ID, $plugin->getId(), $comparison);
     } elseif ($plugin instanceof PropelObjectCollection) {
         if (null === $comparison) {
             $comparison = Criteria::IN;
         }
         return $this->addUsingAlias(PluginDataPeer::PLUGIN_ID, $plugin->toKeyValue('PrimaryKey', 'Id'), $comparison);
     } else {
         throw new PropelException('filterByPlugin() only accepts arguments of type Plugin or PropelCollection');
     }
 }
开发者ID:Halfnhav4,项目名称:datawrapper,代码行数:22,代码来源:BasePluginDataQuery.php

示例4: filterBysfGuardUser

 /**
  * Filter the query by a related sfGuardUser object
  *
  * @param   sfGuardUser|PropelObjectCollection $sfGuardUser The related object(s) to use as filter
  * @param     string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
  *
  * @return   sfGuardRememberKeyQuery The current query, for fluid interface
  * @throws   PropelException - if the provided filter is invalid.
  */
 public function filterBysfGuardUser($sfGuardUser, $comparison = null)
 {
     if ($sfGuardUser instanceof sfGuardUser) {
         return $this->addUsingAlias(sfGuardRememberKeyPeer::USER_ID, $sfGuardUser->getId(), $comparison);
     } elseif ($sfGuardUser instanceof PropelObjectCollection) {
         if (null === $comparison) {
             $comparison = Criteria::IN;
         }
         return $this->addUsingAlias(sfGuardRememberKeyPeer::USER_ID, $sfGuardUser->toKeyValue('PrimaryKey', 'Id'), $comparison);
     } else {
         throw new PropelException('filterBysfGuardUser() only accepts arguments of type sfGuardUser or PropelCollection');
     }
 }
开发者ID:eddypre,项目名称:Quirofano,代码行数:22,代码来源:BasesfGuardRememberKeyQuery.php

示例5: filterByAgenda

 /**
  * Filter the query by a related Agenda object
  *
  * @param   Agenda|PropelObjectCollection $agenda The related object(s) to use as filter
  * @param     string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
  *
  * @return   ProcedimientregrogramadoQuery The current query, for fluid interface
  * @throws   PropelException - if the provided filter is invalid.
  */
 public function filterByAgenda($agenda, $comparison = null)
 {
     if ($agenda instanceof Agenda) {
         return $this->addUsingAlias(ProcedimientregrogramadoPeer::AGENDA_ID, $agenda->getId(), $comparison);
     } elseif ($agenda instanceof PropelObjectCollection) {
         if (null === $comparison) {
             $comparison = Criteria::IN;
         }
         return $this->addUsingAlias(ProcedimientregrogramadoPeer::AGENDA_ID, $agenda->toKeyValue('PrimaryKey', 'Id'), $comparison);
     } else {
         throw new PropelException('filterByAgenda() only accepts arguments of type Agenda or PropelCollection');
     }
 }
开发者ID:eddypre,项目名称:Quirofano,代码行数:22,代码来源:BaseProcedimientregrogramadoQuery.php

示例6: filterByLocalidad

 /**
  * Filter the query by a related Localidad object
  *
  * @param   Localidad|PropelObjectCollection $localidad The related object(s) to use as filter
  * @param     string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
  *
  * @return   AfiliadoQuery The current query, for fluid interface
  * @throws   PropelException - if the provided filter is invalid.
  */
 public function filterByLocalidad($localidad, $comparison = null)
 {
     if ($localidad instanceof Localidad) {
         return $this->addUsingAlias(AfiliadoPeer::LOCALIDAD_ID, $localidad->getId(), $comparison);
     } elseif ($localidad instanceof PropelObjectCollection) {
         if (null === $comparison) {
             $comparison = Criteria::IN;
         }
         return $this->addUsingAlias(AfiliadoPeer::LOCALIDAD_ID, $localidad->toKeyValue('PrimaryKey', 'Id'), $comparison);
     } else {
         throw new PropelException('filterByLocalidad() only accepts arguments of type Localidad or PropelCollection');
     }
 }
开发者ID:nestorfsandoval,项目名称:obraSocialSf,代码行数:22,代码来源:BaseAfiliadoQuery.php

示例7: filterByCurrency

 /**
  * Filter the query by a related Currency object
  *
  * @param   Currency|PropelObjectCollection $currency The related object(s) to use as filter
  * @param     string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
  *
  * @return   CountryQuery The current query, for fluid interface
  * @throws   PropelException - if the provided filter is invalid.
  */
 public function filterByCurrency($currency, $comparison = null)
 {
     if ($currency instanceof Currency) {
         return $this->addUsingAlias(CountryPeer::DEFAULT_CURRENCY_ID, $currency->getId(), $comparison);
     } elseif ($currency instanceof PropelObjectCollection) {
         if (null === $comparison) {
             $comparison = Criteria::IN;
         }
         return $this->addUsingAlias(CountryPeer::DEFAULT_CURRENCY_ID, $currency->toKeyValue('PrimaryKey', 'Id'), $comparison);
     } else {
         throw new PropelException('filterByCurrency() only accepts arguments of type Currency or PropelCollection');
     }
 }
开发者ID:homer6,项目名称:blank_altumo,代码行数:22,代码来源:BaseCountryQuery.php

示例8: filterByPedidoProveedor

 /**
  * Filter the query by a related PedidoProveedor object
  *
  * @param   PedidoProveedor|PropelObjectCollection $pedidoProveedor The related object(s) to use as filter
  * @param     string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
  *
  * @return   DetallePedidoProveedorQuery The current query, for fluid interface
  * @throws   PropelException - if the provided filter is invalid.
  */
 public function filterByPedidoProveedor($pedidoProveedor, $comparison = null)
 {
     if ($pedidoProveedor instanceof PedidoProveedor) {
         return $this->addUsingAlias(DetallePedidoProveedorPeer::PEDIDO_PROVEEDOR_ID, $pedidoProveedor->getId(), $comparison);
     } elseif ($pedidoProveedor instanceof PropelObjectCollection) {
         if (null === $comparison) {
             $comparison = Criteria::IN;
         }
         return $this->addUsingAlias(DetallePedidoProveedorPeer::PEDIDO_PROVEEDOR_ID, $pedidoProveedor->toKeyValue('PrimaryKey', 'Id'), $comparison);
     } else {
         throw new PropelException('filterByPedidoProveedor() only accepts arguments of type PedidoProveedor or PropelCollection');
     }
 }
开发者ID:kcornejo,项目名称:usac,代码行数:22,代码来源:BaseDetallePedidoProveedorQuery.php

示例9: filterBysfGuardPermission

 /**
  * Filter the query by a related sfGuardPermission object
  *
  * @param   sfGuardPermission|PropelObjectCollection $sfGuardPermission The related object(s) to use as filter
  * @param     string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
  *
  * @return   sfGuardUserPermissionQuery The current query, for fluid interface
  * @throws   PropelException - if the provided filter is invalid.
  */
 public function filterBysfGuardPermission($sfGuardPermission, $comparison = null)
 {
     if ($sfGuardPermission instanceof sfGuardPermission) {
         return $this->addUsingAlias(sfGuardUserPermissionPeer::PERMISSION_ID, $sfGuardPermission->getId(), $comparison);
     } elseif ($sfGuardPermission instanceof PropelObjectCollection) {
         if (null === $comparison) {
             $comparison = Criteria::IN;
         }
         return $this->addUsingAlias(sfGuardUserPermissionPeer::PERMISSION_ID, $sfGuardPermission->toKeyValue('PrimaryKey', 'Id'), $comparison);
     } else {
         throw new PropelException('filterBysfGuardPermission() only accepts arguments of type sfGuardPermission or PropelCollection');
     }
 }
开发者ID:eddypre,项目名称:Quirofano,代码行数:22,代码来源:BasesfGuardUserPermissionQuery.php

示例10: filterByTipoPago

 /**
  * Filter the query by a related TipoPago object
  *
  * @param   TipoPago|PropelObjectCollection $tipoPago The related object(s) to use as filter
  * @param     string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
  *
  * @return   TransaccionQuery The current query, for fluid interface
  * @throws   PropelException - if the provided filter is invalid.
  */
 public function filterByTipoPago($tipoPago, $comparison = null)
 {
     if ($tipoPago instanceof TipoPago) {
         return $this->addUsingAlias(TransaccionPeer::TIPO_PAGO_ID, $tipoPago->getId(), $comparison);
     } elseif ($tipoPago instanceof PropelObjectCollection) {
         if (null === $comparison) {
             $comparison = Criteria::IN;
         }
         return $this->addUsingAlias(TransaccionPeer::TIPO_PAGO_ID, $tipoPago->toKeyValue('PrimaryKey', 'Id'), $comparison);
     } else {
         throw new PropelException('filterByTipoPago() only accepts arguments of type TipoPago or PropelCollection');
     }
 }
开发者ID:kcornejo,项目名称:usac,代码行数:22,代码来源:BaseTransaccionQuery.php

示例11: filterBySupplier

 /**
  * Filter the query by a related Supplier object
  *
  * @param   Supplier|PropelObjectCollection $supplier The related object(s) to use as filter
  * @param     string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
  *
  * @return                 BarangMasukQuery The current query, for fluid interface
  * @throws PropelException - if the provided filter is invalid.
  */
 public function filterBySupplier($supplier, $comparison = null)
 {
     if ($supplier instanceof Supplier) {
         return $this->addUsingAlias(BarangMasukPeer::ID_SUPPLIER, $supplier->getId(), $comparison);
     } elseif ($supplier instanceof PropelObjectCollection) {
         if (null === $comparison) {
             $comparison = Criteria::IN;
         }
         return $this->addUsingAlias(BarangMasukPeer::ID_SUPPLIER, $supplier->toKeyValue('PrimaryKey', 'Id'), $comparison);
     } else {
         throw new PropelException('filterBySupplier() only accepts arguments of type Supplier or PropelCollection');
     }
 }
开发者ID:nurhidayatullah,项目名称:inventory,代码行数:22,代码来源:BaseBarangMasukQuery.php

示例12: filterByHoliday

 /**
  * Filter the query by a related Holiday object
  *
  * @param   Holiday|PropelObjectCollection $holiday The related object(s) to use as filter
  * @param     string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
  *
  * @return                 HolidayDomainQuery The current query, for fluid interface
  * @throws PropelException - if the provided filter is invalid.
  */
 public function filterByHoliday($holiday, $comparison = null)
 {
     if ($holiday instanceof Holiday) {
         return $this->addUsingAlias(HolidayDomainPeer::HOLIDAY_ID, $holiday->getId(), $comparison);
     } elseif ($holiday instanceof PropelObjectCollection) {
         if (null === $comparison) {
             $comparison = Criteria::IN;
         }
         return $this->addUsingAlias(HolidayDomainPeer::HOLIDAY_ID, $holiday->toKeyValue('PrimaryKey', 'Id'), $comparison);
     } else {
         throw new PropelException('filterByHoliday() only accepts arguments of type Holiday or PropelCollection');
     }
 }
开发者ID:dapepe,项目名称:tymio,代码行数:22,代码来源:BaseHolidayDomainQuery.php

示例13: filterByGalleryFolder

 /**
  * Filter the query by a related GalleryFolder object
  *
  * @param   GalleryFolder|PropelObjectCollection $galleryFolder The related object(s) to use as filter
  * @param     string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
  *
  * @return                 GalleryImageQuery The current query, for fluid interface
  * @throws PropelException - if the provided filter is invalid.
  */
 public function filterByGalleryFolder($galleryFolder, $comparison = null)
 {
     if ($galleryFolder instanceof GalleryFolder) {
         return $this->addUsingAlias(GalleryImagePeer::GALLERY_FOLDER_ID, $galleryFolder->getId(), $comparison);
     } elseif ($galleryFolder instanceof PropelObjectCollection) {
         if (null === $comparison) {
             $comparison = Criteria::IN;
         }
         return $this->addUsingAlias(GalleryImagePeer::GALLERY_FOLDER_ID, $galleryFolder->toKeyValue('PrimaryKey', 'Id'), $comparison);
     } else {
         throw new PropelException('filterByGalleryFolder() only accepts arguments of type GalleryFolder or PropelCollection');
     }
 }
开发者ID:jorisros,项目名称:sfWidgetCKEditorPlugin,代码行数:22,代码来源:BaseGalleryImageQuery.php

示例14: filterByhelpHour

 /**
  * Filter the query by a related helpHour object
  *
  * @param   helpHour|PropelObjectCollection $helpHour The related object(s) to use as filter
  * @param     string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
  *
  * @return                 helpHourSigninQuery The current query, for fluid interface
  * @throws PropelException - if the provided filter is invalid.
  */
 public function filterByhelpHour($helpHour, $comparison = null)
 {
     if ($helpHour instanceof helpHour) {
         return $this->addUsingAlias(helpHourSigninPeer::HELPHOUR_ID, $helpHour->getId(), $comparison);
     } elseif ($helpHour instanceof PropelObjectCollection) {
         if (null === $comparison) {
             $comparison = Criteria::IN;
         }
         return $this->addUsingAlias(helpHourSigninPeer::HELPHOUR_ID, $helpHour->toKeyValue('PrimaryKey', 'Id'), $comparison);
     } else {
         throw new PropelException('filterByhelpHour() only accepts arguments of type helpHour or PropelCollection');
     }
 }
开发者ID:nhallpot,项目名称:CSCrew2015-back,代码行数:22,代码来源:BasehelpHourSigninQuery.php

示例15: filterByState

 /**
  * Filter the query by a related State object
  *
  * @param   State|PropelObjectCollection $state The related object(s) to use as filter
  * @param     string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
  *
  * @return   ContactQuery The current query, for fluid interface
  * @throws   PropelException - if the provided filter is invalid.
  */
 public function filterByState($state, $comparison = null)
 {
     if ($state instanceof State) {
         return $this->addUsingAlias(ContactPeer::STATE_ID, $state->getId(), $comparison);
     } elseif ($state instanceof PropelObjectCollection) {
         if (null === $comparison) {
             $comparison = Criteria::IN;
         }
         return $this->addUsingAlias(ContactPeer::STATE_ID, $state->toKeyValue('PrimaryKey', 'Id'), $comparison);
     } else {
         throw new PropelException('filterByState() only accepts arguments of type State or PropelCollection');
     }
 }
开发者ID:homer6,项目名称:blank_altumo,代码行数:22,代码来源:BaseContactQuery.php


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