/** * 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->aVariationType) { $this->aVariationType->removeVariationTypeI18n($this); } $this->variation_type_id = null; $this->locale = null; $this->variation_type_name = null; $this->alreadyInSave = false; $this->clearAllReferences(); $this->applyDefaultValues(); $this->resetModified(); $this->setNew(true); $this->setDeleted(false); }
/** * Filter the query by a related \App\Propel\VariationType object * * @param \App\Propel\VariationType|ObjectCollection $variationType 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 ChildVariationTypeI18nQuery The current query, for fluid interface */ public function filterByVariationType($variationType, $comparison = null) { if ($variationType instanceof \App\Propel\VariationType) { return $this->addUsingAlias(VariationTypeI18nTableMap::COL_VARIATION_TYPE_ID, $variationType->getVariationTypeId(), $comparison); } elseif ($variationType instanceof ObjectCollection) { if (null === $comparison) { $comparison = Criteria::IN; } return $this->addUsingAlias(VariationTypeI18nTableMap::COL_VARIATION_TYPE_ID, $variationType->toKeyValue('PrimaryKey', 'VariationTypeId'), $comparison); } else { throw new PropelException('filterByVariationType() only accepts arguments of type \\App\\Propel\\VariationType or Collection'); } }
/** * Exclude object from result * * @param ChildVariationType $variationType Object to remove from the list of results * * @return $this|ChildVariationTypeQuery The current query, for fluid interface */ public function prune($variationType = null) { if ($variationType) { $this->addUsingAlias(VariationTypeTableMap::COL_VARIATION_TYPE_ID, $variationType->getVariationTypeId(), Criteria::NOT_EQUAL); } return $this; }
/** * 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->aVariationType) { $this->aVariationType->removeVariation($this); } $this->variation_id = null; $this->variation_type_id = null; $this->variation_is_general = null; $this->created_at = null; $this->updated_at = null; $this->alreadyInSave = false; $this->clearAllReferences(); $this->resetModified(); $this->setNew(true); $this->setDeleted(false); }