Beispiel #1
0
 /**
  * Filter the query by a related \Models\Notification object
  *
  * @param \Models\Notification|ObjectCollection $notification the related object to use as filter
  * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
  *
  * @return ChildUserQuery The current query, for fluid interface
  */
 public function filterByNotificationRelatedByOriginTypeOriginId($notification, $comparison = null)
 {
     if ($notification instanceof \Models\Notification) {
         return $this->where("'user' = ?", $notification->getOriginType(), 2)->addUsingAlias(UserTableMap::COL_ID, $notification->getOriginId(), $comparison);
     } else {
         throw new PropelException('filterByNotificationRelatedByOriginTypeOriginId() only accepts arguments of type \\Models\\Notification');
     }
 }