Пример #1
0
 /**
  * Exclude object from result
  *
  * @param   ChildServices $services Object to remove from the list of results
  *
  * @return $this|ChildServicesQuery The current query, for fluid interface
  */
 public function prune($services = null)
 {
     if ($services) {
         $this->addUsingAlias(ServicesTableMap::COL_ID, $services->getId(), Criteria::NOT_EQUAL);
     }
     return $this;
 }
Пример #2
0
 /**
  * Filter the query by a related \Services object
  *
  * @param \Services|ObjectCollection $services 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 ChildObjectServicesQuery The current query, for fluid interface
  */
 public function filterByServices($services, $comparison = null)
 {
     if ($services instanceof \Services) {
         return $this->addUsingAlias(ObjectServicesTableMap::COL_ID_SERVICES, $services->getId(), $comparison);
     } elseif ($services instanceof ObjectCollection) {
         if (null === $comparison) {
             $comparison = Criteria::IN;
         }
         return $this->addUsingAlias(ObjectServicesTableMap::COL_ID_SERVICES, $services->toKeyValue('PrimaryKey', 'Id'), $comparison);
     } else {
         throw new PropelException('filterByServices() only accepts arguments of type \\Services or Collection');
     }
 }
Пример #3
0
 /**
  * Declares an association between this object and a ChildServices object.
  *
  * @param  ChildServices $v
  * @return $this|\ObjectServices The current object (for fluent API support)
  * @throws PropelException
  */
 public function setServices(ChildServices $v = null)
 {
     if ($v === null) {
         $this->setIdServices(NULL);
     } else {
         $this->setIdServices($v->getId());
     }
     $this->aServices = $v;
     // Add binding for other direction of this n:n relationship.
     // If this object has already been added to the ChildServices object, it will not be re-added.
     if ($v !== null) {
         $v->addObjectServices($this);
     }
     return $this;
 }