/** * 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->aMediafile) { $this->aMediafile->removeFileMeta($this); } if (null !== $this->aUserAttributes) { $this->aUserAttributes->removeFileMeta($this); } $this->value = null; $this->user_attributes_iduser_attributes = null; $this->mediafile_idmediafile = null; $this->alreadyInSave = false; $this->clearAllReferences(); $this->resetModified(); $this->setNew(true); $this->setDeleted(false); }
/** * Filter the query by a related \Mediafile object * * @param \Mediafile|ObjectCollection $mediafile 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 ChildJpegFileQuery The current query, for fluid interface */ public function filterByMediafile($mediafile, $comparison = null) { if ($mediafile instanceof \Mediafile) { return $this->addUsingAlias(JpegFileTableMap::COL_MEDIAFILE_IDMEDIAFILE, $mediafile->getIdmediafile(), $comparison); } elseif ($mediafile instanceof ObjectCollection) { if (null === $comparison) { $comparison = Criteria::IN; } return $this->addUsingAlias(JpegFileTableMap::COL_MEDIAFILE_IDMEDIAFILE, $mediafile->toKeyValue('PrimaryKey', 'Idmediafile'), $comparison); } else { throw new PropelException('filterByMediafile() only accepts arguments of type \\Mediafile 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->aMediafile) { $this->aMediafile->removeJpegFile($this); } $this->mediafile_idmediafile = null; $this->flashpix_version = null; $this->color_space = null; $this->exif_image_width = null; $this->exif_image_height = null; $this->exposure_mode = null; $this->white_balance = null; $this->digital_zoom_ratio = null; $this->scene_capture_type = null; $this->gps_latitude1 = null; $this->gps_latitude2 = null; $this->gps_latitude3 = null; $this->gps_measure_mode = null; $this->user_description = null; $this->alreadyInSave = false; $this->clearAllReferences(); $this->resetModified(); $this->setNew(true); $this->setDeleted(false); }
/** * Exclude object from result * * @param ChildMediafile $mediafile Object to remove from the list of results * * @return $this|ChildMediafileQuery The current query, for fluid interface */ public function prune($mediafile = null) { if ($mediafile) { $this->addUsingAlias(MediafileTableMap::COL_IDMEDIAFILE, $mediafile->getIdmediafile(), Criteria::NOT_EQUAL); } return $this; }