Example #1
0
 /**
  * @param ChildFileMeta $fileMeta The ChildFileMeta object to add.
  */
 protected function doAddFileMeta(ChildFileMeta $fileMeta)
 {
     $this->collFileMetas[] = $fileMeta;
     $fileMeta->setUserAttributes($this);
 }
Example #2
0
 /**
  * Exclude object from result
  *
  * @param   ChildFileMeta $fileMeta Object to remove from the list of results
  *
  * @return $this|ChildFileMetaQuery The current query, for fluid interface
  */
 public function prune($fileMeta = null)
 {
     if ($fileMeta) {
         $this->addCond('pruneCond0', $this->getAliasedColName(FileMetaTableMap::COL_USER_ATTRIBUTES_IDUSER_ATTRIBUTES), $fileMeta->getUserAttributesIduserAttributes(), Criteria::NOT_EQUAL);
         $this->addCond('pruneCond1', $this->getAliasedColName(FileMetaTableMap::COL_MEDIAFILE_IDMEDIAFILE), $fileMeta->getMediafileIdmediafile(), Criteria::NOT_EQUAL);
         $this->combine(array('pruneCond0', 'pruneCond1'), Criteria::LOGICAL_OR);
     }
     return $this;
 }
Example #3
0
 /**
  * Filter the query by a related \FileMeta object
  *
  * @param \FileMeta|ObjectCollection $fileMeta the related object to use as filter
  * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
  *
  * @return ChildUserAttributesQuery The current query, for fluid interface
  */
 public function filterByFileMeta($fileMeta, $comparison = null)
 {
     if ($fileMeta instanceof \FileMeta) {
         return $this->addUsingAlias(UserAttributesTableMap::COL_IDUSER_ATTRIBUTES, $fileMeta->getUserAttributesIduserAttributes(), $comparison);
     } elseif ($fileMeta instanceof ObjectCollection) {
         return $this->useFileMetaQuery()->filterByPrimaryKeys($fileMeta->getPrimaryKeys())->endUse();
     } else {
         throw new PropelException('filterByFileMeta() only accepts arguments of type \\FileMeta or Collection');
     }
 }
Example #4
0
 /**
  * @param ChildFileMeta $fileMeta The ChildFileMeta object to add.
  */
 protected function doAddFileMeta(ChildFileMeta $fileMeta)
 {
     $this->collFileMetas[] = $fileMeta;
     $fileMeta->setMediafile($this);
 }
Example #5
0
 /**
  * Filter the query by a related \FileMeta object
  *
  * @param \FileMeta|ObjectCollection $fileMeta the related object to use as filter
  * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
  *
  * @return ChildMediafileQuery The current query, for fluid interface
  */
 public function filterByFileMeta($fileMeta, $comparison = null)
 {
     if ($fileMeta instanceof \FileMeta) {
         return $this->addUsingAlias(MediafileTableMap::COL_IDMEDIAFILE, $fileMeta->getMediafileIdmediafile(), $comparison);
     } elseif ($fileMeta instanceof ObjectCollection) {
         return $this->useFileMetaQuery()->filterByPrimaryKeys($fileMeta->getPrimaryKeys())->endUse();
     } else {
         throw new PropelException('filterByFileMeta() only accepts arguments of type \\FileMeta or Collection');
     }
 }