예제 #1
0
 /**
  * Clears the current object, sets all attributes to their default values and removes
  * outgoing references as well as back-references (from other objects to this one. Results probably in a database
  * change of those foreign objects when you call `save` there).
  */
 public function clear()
 {
     if (null !== $this->aServices) {
         $this->aServices->removeObjectServices($this);
     }
     if (null !== $this->aObject) {
         $this->aObject->removeObjectServices($this);
     }
     $this->id_object = null;
     $this->id_services = null;
     $this->alreadyInSave = false;
     $this->clearAllReferences();
     $this->resetModified();
     $this->setNew(true);
     $this->setDeleted(false);
 }
예제 #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
 /**
  * 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;
 }