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


PHP ObjectCollection::getParentId方法代码示例

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


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

示例1: filterByParent

 /**
  * Filter the query by a related \gossi\trixionary\model\SkillDependency object
  *
  * @param \gossi\trixionary\model\SkillDependency|ObjectCollection $skillDependency the related object to use as filter
  * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
  *
  * @return ChildSkillQuery The current query, for fluid interface
  */
 public function filterByParent($skillDependency, $comparison = null)
 {
     if ($skillDependency instanceof \gossi\trixionary\model\SkillDependency) {
         return $this->addUsingAlias(SkillTableMap::COL_ID, $skillDependency->getParentId(), $comparison);
     } elseif ($skillDependency instanceof ObjectCollection) {
         return $this->useParentQuery()->filterByPrimaryKeys($skillDependency->getPrimaryKeys())->endUse();
     } else {
         throw new PropelException('filterByParent() only accepts arguments of type \\gossi\\trixionary\\model\\SkillDependency or Collection');
     }
 }
开发者ID:gossi,项目名称:trixionary,代码行数:18,代码来源:SkillQuery.php

示例2: filterByStructureNodeParentRelatedByParentId

 /**
  * Filter the query by a related \gossi\trixionary\model\StructureNodeParent object
  *
  * @param \gossi\trixionary\model\StructureNodeParent|ObjectCollection $structureNodeParent the related object to use as filter
  * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
  *
  * @return ChildStructureNodeQuery The current query, for fluid interface
  */
 public function filterByStructureNodeParentRelatedByParentId($structureNodeParent, $comparison = null)
 {
     if ($structureNodeParent instanceof \gossi\trixionary\model\StructureNodeParent) {
         return $this->addUsingAlias(StructureNodeTableMap::COL_ID, $structureNodeParent->getParentId(), $comparison);
     } elseif ($structureNodeParent instanceof ObjectCollection) {
         return $this->useStructureNodeParentRelatedByParentIdQuery()->filterByPrimaryKeys($structureNodeParent->getPrimaryKeys())->endUse();
     } else {
         throw new PropelException('filterByStructureNodeParentRelatedByParentId() only accepts arguments of type \\gossi\\trixionary\\model\\StructureNodeParent or Collection');
     }
 }
开发者ID:gossi,项目名称:trixionary,代码行数:18,代码来源:StructureNodeQuery.php

示例3: filterByPermissionRelatedById

 /**
  * Filter the query by a related \Alchemy\Component\Cerberus\Model\Permission object
  *
  * @param \Alchemy\Component\Cerberus\Model\Permission|ObjectCollection $permission  the related object to use as filter
  * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
  *
  * @return ChildPermissionQuery The current query, for fluid interface
  */
 public function filterByPermissionRelatedById($permission, $comparison = null)
 {
     if ($permission instanceof \Alchemy\Component\Cerberus\Model\Permission) {
         return $this->addUsingAlias(PermissionTableMap::COL_ID, $permission->getParentId(), $comparison);
     } elseif ($permission instanceof ObjectCollection) {
         return $this->usePermissionRelatedByIdQuery()->filterByPrimaryKeys($permission->getPrimaryKeys())->endUse();
     } else {
         throw new PropelException('filterByPermissionRelatedById() only accepts arguments of type \\Alchemy\\Component\\Cerberus\\Model\\Permission or Collection');
     }
 }
开发者ID:phpalchemy,项目名称:cerberus,代码行数:18,代码来源:PermissionQuery.php

示例4: filterByCategoryOptionRelatedById

 /**
  * Filter the query by a related \CategoryOption object
  *
  * @param \CategoryOption|ObjectCollection $categoryOption the related object to use as filter
  * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
  *
  * @return ChildCategoryOptionQuery The current query, for fluid interface
  */
 public function filterByCategoryOptionRelatedById($categoryOption, $comparison = null)
 {
     if ($categoryOption instanceof \CategoryOption) {
         return $this->addUsingAlias(CategoryOptionTableMap::COL_ID, $categoryOption->getParentId(), $comparison);
     } elseif ($categoryOption instanceof ObjectCollection) {
         return $this->useCategoryOptionRelatedByIdQuery()->filterByPrimaryKeys($categoryOption->getPrimaryKeys())->endUse();
     } else {
         throw new PropelException('filterByCategoryOptionRelatedById() only accepts arguments of type \\CategoryOption or Collection');
     }
 }
开发者ID:pcmasteratings,项目名称:site,代码行数:18,代码来源:CategoryOptionQuery.php

示例5: filterBySublanguage

 /**
  * Filter the query by a related \keeko\core\model\Language object
  *
  * @param \keeko\core\model\Language|ObjectCollection $language the related object to use as filter
  * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
  *
  * @return ChildLanguageQuery The current query, for fluid interface
  */
 public function filterBySublanguage($language, $comparison = null)
 {
     if ($language instanceof \keeko\core\model\Language) {
         return $this->addUsingAlias(LanguageTableMap::COL_ID, $language->getParentId(), $comparison);
     } elseif ($language instanceof ObjectCollection) {
         return $this->useSublanguageQuery()->filterByPrimaryKeys($language->getPrimaryKeys())->endUse();
     } else {
         throw new PropelException('filterBySublanguage() only accepts arguments of type \\keeko\\core\\model\\Language or Collection');
     }
 }
开发者ID:keeko,项目名称:core,代码行数:18,代码来源:LanguageQuery.php

示例6: filterByLocalizationRelatedById

 /**
  * Filter the query by a related \keeko\core\model\Localization object
  *
  * @param \keeko\core\model\Localization|ObjectCollection $localization the related object to use as filter
  * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
  *
  * @return ChildLocalizationQuery The current query, for fluid interface
  */
 public function filterByLocalizationRelatedById($localization, $comparison = null)
 {
     if ($localization instanceof \keeko\core\model\Localization) {
         return $this->addUsingAlias(LocalizationTableMap::COL_ID, $localization->getParentId(), $comparison);
     } elseif ($localization instanceof ObjectCollection) {
         return $this->useLocalizationRelatedByIdQuery()->filterByPrimaryKeys($localization->getPrimaryKeys())->endUse();
     } else {
         throw new PropelException('filterByLocalizationRelatedById() only accepts arguments of type \\keeko\\core\\model\\Localization or Collection');
     }
 }
开发者ID:keeko,项目名称:core,代码行数:18,代码来源:LocalizationQuery.php


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