Esempio 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->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);
 }
Esempio n. 2
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->aUserAttributes) {
         $this->aUserAttributes->removeUserAttributeValues($this);
     }
     if (null !== $this->aUser) {
         $this->aUser->removeUserAttributeValues($this);
     }
     $this->id = null;
     $this->user_attribute_id = null;
     $this->user_id = null;
     $this->value = null;
     $this->alreadyInSave = false;
     $this->clearAllReferences();
     $this->resetModified();
     $this->setNew(true);
     $this->setDeleted(false);
 }
Esempio n. 3
0
 /**
  * Exclude object from result
  *
  * @param   ChildUserAttributes $userAttributes Object to remove from the list of results
  *
  * @return $this|ChildUserAttributesQuery The current query, for fluid interface
  */
 public function prune($userAttributes = null)
 {
     if ($userAttributes) {
         $this->addUsingAlias(UserAttributesTableMap::COL_ID, $userAttributes->getId(), Criteria::NOT_EQUAL);
     }
     return $this;
 }
Esempio n. 4
0
 /**
  * Filter the query by a related \UserAttributes object
  *
  * @param \UserAttributes|ObjectCollection $userAttributes 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 ChildUserAttributeValuesQuery The current query, for fluid interface
  */
 public function filterByUserAttributes($userAttributes, $comparison = null)
 {
     if ($userAttributes instanceof \UserAttributes) {
         return $this->addUsingAlias(UserAttributeValuesTableMap::COL_USER_ATTRIBUTE_ID, $userAttributes->getId(), $comparison);
     } elseif ($userAttributes instanceof ObjectCollection) {
         if (null === $comparison) {
             $comparison = Criteria::IN;
         }
         return $this->addUsingAlias(UserAttributeValuesTableMap::COL_USER_ATTRIBUTE_ID, $userAttributes->toKeyValue('PrimaryKey', 'Id'), $comparison);
     } else {
         throw new PropelException('filterByUserAttributes() only accepts arguments of type \\UserAttributes or Collection');
     }
 }