/** * 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->aTranslationApplication) { $this->aTranslationApplication->removeTranslationCatalog($this); } $this->id = null; $this->application_id = null; $this->name = null; $this->created_at = null; $this->updated_at = null; $this->alreadyInSave = false; $this->clearAllReferences(); $this->applyDefaultValues(); $this->resetModified(); $this->setNew(true); $this->setDeleted(false); }
/** * Filter the query by a related \App\Models\TranslationApplication object * * @param \App\Models\TranslationApplication|ObjectCollection $translationApplication 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 ChildTranslationCatalogQuery The current query, for fluid interface */ public function filterByTranslationApplication($translationApplication, $comparison = null) { if ($translationApplication instanceof \App\Models\TranslationApplication) { return $this->addUsingAlias(TranslationCatalogTableMap::COL_APPLICATION_ID, $translationApplication->getId(), $comparison); } elseif ($translationApplication instanceof ObjectCollection) { if (null === $comparison) { $comparison = Criteria::IN; } return $this->addUsingAlias(TranslationCatalogTableMap::COL_APPLICATION_ID, $translationApplication->toKeyValue('PrimaryKey', 'Id'), $comparison); } else { throw new PropelException('filterByTranslationApplication() only accepts arguments of type \\App\\Models\\TranslationApplication or Collection'); } }
/** * Exclude object from result * * @param ChildTranslationApplication $translationApplication Object to remove from the list of results * * @return $this|ChildTranslationApplicationQuery The current query, for fluid interface */ public function prune($translationApplication = null) { if ($translationApplication) { $this->addUsingAlias(TranslationApplicationTableMap::COL_ID, $translationApplication->getId(), Criteria::NOT_EQUAL); } return $this; }