示例#1
0
 /**
  * Declares an association between this object and a ChildUserAttributes object.
  *
  * @param  ChildUserAttributes $v
  * @return $this|\FileMeta The current object (for fluent API support)
  * @throws PropelException
  */
 public function setUserAttributes(ChildUserAttributes $v = null)
 {
     if ($v === null) {
         $this->setUserAttributesIduserAttributes(NULL);
     } else {
         $this->setUserAttributesIduserAttributes($v->getIduserAttributes());
     }
     $this->aUserAttributes = $v;
     // Add binding for other direction of this n:n relationship.
     // If this object has already been added to the ChildUserAttributes object, it will not be re-added.
     if ($v !== null) {
         $v->addFileMeta($this);
     }
     return $this;
 }
示例#2
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 ChildFileMetaQuery The current query, for fluid interface
  */
 public function filterByUserAttributes($userAttributes, $comparison = null)
 {
     if ($userAttributes instanceof \UserAttributes) {
         return $this->addUsingAlias(FileMetaTableMap::COL_USER_ATTRIBUTES_IDUSER_ATTRIBUTES, $userAttributes->getIduserAttributes(), $comparison);
     } elseif ($userAttributes instanceof ObjectCollection) {
         if (null === $comparison) {
             $comparison = Criteria::IN;
         }
         return $this->addUsingAlias(FileMetaTableMap::COL_USER_ATTRIBUTES_IDUSER_ATTRIBUTES, $userAttributes->toKeyValue('PrimaryKey', 'IduserAttributes'), $comparison);
     } else {
         throw new PropelException('filterByUserAttributes() only accepts arguments of type \\UserAttributes or Collection');
     }
 }
示例#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_IDUSER_ATTRIBUTES, $userAttributes->getIduserAttributes(), Criteria::NOT_EQUAL);
     }
     return $this;
 }