Ejemplo n.º 1
0
 /**
  * Filter the query by a related MeshingSchemaTable object
  *
  * @param     MeshingSchemaTable $meshingSchemaTable  the related object to use as filter
  * @param     string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
  *
  * @return    MeshingSchemaQuery The current query, for fluid interface
  */
 public function filterByMeshingSchemaTable($meshingSchemaTable, $comparison = null)
 {
     if ($meshingSchemaTable instanceof MeshingSchemaTable) {
         return $this->addUsingAlias(MeshingSchemaPeer::ID, $meshingSchemaTable->getSchemaId(), $comparison);
     } elseif ($meshingSchemaTable instanceof PropelCollection) {
         return $this->useMeshingSchemaTableQuery()->filterByPrimaryKeys($meshingSchemaTable->getPrimaryKeys())->endUse();
     } else {
         throw new PropelException('filterByMeshingSchemaTable() only accepts arguments of type MeshingSchemaTable or PropelCollection');
     }
 }