/**
  * 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->aExpertGroup) {
         $this->aExpertGroup->removeExpertGroupMembers($this);
     }
     if (null !== $this->aExperts) {
         $this->aExperts->removeExpertGroupMembers($this);
     }
     $this->expert = null;
     $this->group_name = null;
     $this->alreadyInSave = false;
     $this->clearAllReferences();
     $this->resetModified();
     $this->setNew(true);
     $this->setDeleted(false);
 }
 /**
  * Filter the query by a related \Experts object
  *
  * @param \Experts|ObjectCollection $experts The related object(s) to use as filter
  * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
  *
  * @return ChildResponsesQuery The current query, for fluid interface
  */
 public function filterByExperts($experts, $comparison = null)
 {
     if ($experts instanceof \Experts) {
         return $this->addUsingAlias(ResponsesTableMap::COL_EXPERT, $experts->getUsername(), $comparison);
     } elseif ($experts instanceof ObjectCollection) {
         if (null === $comparison) {
             $comparison = Criteria::IN;
         }
         return $this->addUsingAlias(ResponsesTableMap::COL_EXPERT, $experts->toKeyValue('PrimaryKey', 'Username'), $comparison);
     } else {
         throw new PropelException('filterByExperts() only accepts arguments of type \\Experts or Collection');
     }
 }
 /**
  * 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->aExperts) {
         $this->aExperts->removeExpertQuestionState($this);
     }
     if (null !== $this->aQuestions) {
         $this->aQuestions->removeExpertQuestionState($this);
     }
     $this->username = null;
     $this->question_id = null;
     $this->is_read = null;
     $this->is_responded = null;
     $this->is_expunged = null;
     $this->is_muted = null;
     $this->alreadyInSave = false;
     $this->clearAllReferences();
     $this->applyDefaultValues();
     $this->resetModified();
     $this->setNew(true);
     $this->setDeleted(false);
 }
Esempio n. 4
0
 /**
  * Exclude object from result
  *
  * @param   ChildExperts $experts Object to remove from the list of results
  *
  * @return $this|ChildExpertsQuery The current query, for fluid interface
  */
 public function prune($experts = null)
 {
     if ($experts) {
         $this->addUsingAlias(ExpertsTableMap::COL_USERNAME, $experts->getUsername(), Criteria::NOT_EQUAL);
     }
     return $this;
 }
Esempio n. 5
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->aExperts) {
         $this->aExperts->removeResponses($this);
     }
     if (null !== $this->aQuestions) {
         $this->aQuestions->removeResponses($this);
     }
     $this->id = null;
     $this->expert = null;
     $this->question_id = null;
     $this->created = null;
     $this->response = null;
     $this->votes = null;
     $this->alreadyInSave = false;
     $this->clearAllReferences();
     $this->applyDefaultValues();
     $this->resetModified();
     $this->setNew(true);
     $this->setDeleted(false);
 }