示例#1
0
 /**
  * Filter the query by a related \Models\Shared object
  *
  * @param \Models\Shared|ObjectCollection $shared the related object to use as filter
  * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
  *
  * @return ChildGroupQuery The current query, for fluid interface
  */
 public function filterByShared($shared, $comparison = null)
 {
     if ($shared instanceof \Models\Shared) {
         return $this->where("'group' = ?", $shared->getToType(), 2)->addUsingAlias(GroupTableMap::COL_ID, $shared->getToId(), $comparison);
     } else {
         throw new PropelException('filterByShared() only accepts arguments of type \\Models\\Shared');
     }
 }