Exemplo n.º 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->aInvoice) {
         $this->aInvoice->removeReminder($this);
     }
     if (null !== $this->aReminderlevel) {
         $this->aReminderlevel->removeReminder($this);
     }
     $this->id = null;
     $this->invoice_id = null;
     $this->reminderlevel_id = null;
     $this->alreadyInSave = false;
     $this->clearAllReferences();
     $this->resetModified();
     $this->setNew(true);
     $this->setDeleted(false);
 }
Exemplo n.º 2
0
 /**
  * Filter the query by a related \Reminderlevel object
  *
  * @param \Reminderlevel|ObjectCollection $reminderlevel 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 ChildReminderQuery The current query, for fluid interface
  */
 public function filterByReminderlevel($reminderlevel, $comparison = null)
 {
     if ($reminderlevel instanceof \Reminderlevel) {
         return $this->addUsingAlias(ReminderTableMap::COL_REMINDERLEVEL_ID, $reminderlevel->getId(), $comparison);
     } elseif ($reminderlevel instanceof ObjectCollection) {
         if (null === $comparison) {
             $comparison = Criteria::IN;
         }
         return $this->addUsingAlias(ReminderTableMap::COL_REMINDERLEVEL_ID, $reminderlevel->toKeyValue('PrimaryKey', 'Id'), $comparison);
     } else {
         throw new PropelException('filterByReminderlevel() only accepts arguments of type \\Reminderlevel or Collection');
     }
 }
Exemplo n.º 3
0
 /**
  * Exclude object from result
  *
  * @param   ChildReminderlevel $reminderlevel Object to remove from the list of results
  *
  * @return $this|ChildReminderlevelQuery The current query, for fluid interface
  */
 public function prune($reminderlevel = null)
 {
     if ($reminderlevel) {
         $this->addUsingAlias(ReminderlevelTableMap::COL_ID, $reminderlevel->getId(), Criteria::NOT_EQUAL);
     }
     return $this;
 }