Example #1
0
 /**
  * Exclude object from result
  *
  * @param   ChildApplication $application Object to remove from the list of results
  *
  * @return $this|ChildApplicationQuery The current query, for fluid interface
  */
 public function prune($application = null)
 {
     if ($application) {
         $this->addUsingAlias(ApplicationTableMap::COL_ID, $application->getId(), Criteria::NOT_EQUAL);
     }
     return $this;
 }
Example #2
0
 /**
  * Filter the query by a related \keeko\core\model\Application object
  *
  * @param \keeko\core\model\Application|ObjectCollection $application The related object(s) to use as filter
  * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
  *
  * @throws \Propel\Runtime\Exception\PropelException
  *
  * @return ChildApplicationUriQuery The current query, for fluid interface
  */
 public function filterByApplication($application, $comparison = null)
 {
     if ($application instanceof \keeko\core\model\Application) {
         return $this->addUsingAlias(ApplicationUriTableMap::COL_APPLICATION_ID, $application->getId(), $comparison);
     } elseif ($application instanceof ObjectCollection) {
         if (null === $comparison) {
             $comparison = Criteria::IN;
         }
         return $this->addUsingAlias(ApplicationUriTableMap::COL_APPLICATION_ID, $application->toKeyValue('PrimaryKey', 'Id'), $comparison);
     } else {
         throw new PropelException('filterByApplication() only accepts arguments of type \\keeko\\core\\model\\Application or Collection');
     }
 }
Example #3
0
 /**
  * Declares an association between this object and a ChildApplication object.
  *
  * @param  ChildApplication $v
  * @return $this|\keeko\core\model\ApplicationUri The current object (for fluent API support)
  * @throws PropelException
  */
 public function setApplication(ChildApplication $v = null)
 {
     if ($v === null) {
         $this->setApplicationId(NULL);
     } else {
         $this->setApplicationId($v->getId());
     }
     $this->aApplication = $v;
     // Add binding for other direction of this n:n relationship.
     // If this object has already been added to the ChildApplication object, it will not be re-added.
     if ($v !== null) {
         $v->addApplicationUri($this);
     }
     return $this;
 }
Example #4
0
 /**
  * Filter the query by a related \keeko\core\model\Application object
  *
  * @param \keeko\core\model\Application|ObjectCollection $application the related object to use as filter
  * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
  *
  * @return ChildPackageQuery The current query, for fluid interface
  */
 public function filterByApplication($application, $comparison = null)
 {
     if ($application instanceof \keeko\core\model\Application) {
         return $this->addUsingAlias(PackageTableMap::COL_ID, $application->getId(), $comparison);
     } elseif ($application instanceof ObjectCollection) {
         return $this->useApplicationQuery()->filterByPrimaryKeys($application->getPrimaryKeys())->endUse();
     } else {
         throw new PropelException('filterByApplication() only accepts arguments of type \\keeko\\core\\model\\Application or Collection');
     }
 }