Ejemplo n.º 1
0
 /**
  * Filter the query by a related DocumentCategory object
  *
  * @param   DocumentCategory|PropelObjectCollection $documentCategory  the related object to use as filter
  * @param     string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
  *
  * @return                 UserQuery The current query, for fluid interface
  * @throws PropelException - if the provided filter is invalid.
  */
 public function filterByDocumentCategoryRelatedByUpdatedBy($documentCategory, $comparison = null)
 {
     if ($documentCategory instanceof DocumentCategory) {
         return $this->addUsingAlias(UserPeer::ID, $documentCategory->getUpdatedBy(), $comparison);
     } elseif ($documentCategory instanceof PropelObjectCollection) {
         return $this->useDocumentCategoryRelatedByUpdatedByQuery()->filterByPrimaryKeys($documentCategory->getPrimaryKeys())->endUse();
     } else {
         throw new PropelException('filterByDocumentCategoryRelatedByUpdatedBy() only accepts arguments of type DocumentCategory or PropelCollection');
     }
 }