Exemplo n.º 1
0
 /**
  * Filter the query by a related Reference object
  *
  * @param   Reference|PropelObjectCollection $reference  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 filterByReferenceRelatedByUpdatedBy($reference, $comparison = null)
 {
     if ($reference instanceof Reference) {
         return $this->addUsingAlias(UserPeer::ID, $reference->getUpdatedBy(), $comparison);
     } elseif ($reference instanceof PropelObjectCollection) {
         return $this->useReferenceRelatedByUpdatedByQuery()->filterByPrimaryKeys($reference->getPrimaryKeys())->endUse();
     } else {
         throw new PropelException('filterByReferenceRelatedByUpdatedBy() only accepts arguments of type Reference or PropelCollection');
     }
 }