/** * 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->aFileType) { $this->aFileType->removeFileTypeI18n($this); } $this->file_type_id = null; $this->locale = null; $this->file_type_name = null; $this->alreadyInSave = false; $this->clearAllReferences(); $this->applyDefaultValues(); $this->resetModified(); $this->setNew(true); $this->setDeleted(false); }
/** * 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->aFileType) { $this->aFileType->removeFile($this); } $this->file_id = null; $this->file_type_id = null; $this->file_path = null; $this->created_at = null; $this->updated_at = null; $this->alreadyInSave = false; $this->clearAllReferences(); $this->resetModified(); $this->setNew(true); $this->setDeleted(false); }
/** * Filter the query by a related \App\Propel\FileType object * * @param \App\Propel\FileType|ObjectCollection $fileType 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 ChildFileTypeI18nQuery The current query, for fluid interface */ public function filterByFileType($fileType, $comparison = null) { if ($fileType instanceof \App\Propel\FileType) { return $this->addUsingAlias(FileTypeI18nTableMap::COL_FILE_TYPE_ID, $fileType->getFileTypeId(), $comparison); } elseif ($fileType instanceof ObjectCollection) { if (null === $comparison) { $comparison = Criteria::IN; } return $this->addUsingAlias(FileTypeI18nTableMap::COL_FILE_TYPE_ID, $fileType->toKeyValue('PrimaryKey', 'FileTypeId'), $comparison); } else { throw new PropelException('filterByFileType() only accepts arguments of type \\App\\Propel\\FileType or Collection'); } }
/** * Exclude object from result * * @param ChildFileType $fileType Object to remove from the list of results * * @return $this|ChildFileTypeQuery The current query, for fluid interface */ public function prune($fileType = null) { if ($fileType) { $this->addUsingAlias(FileTypeTableMap::COL_FILE_TYPE_ID, $fileType->getFileTypeId(), Criteria::NOT_EQUAL); } return $this; }