/**
  * Filter the query by a related Customers object
  *
  * @param   Customers|PropelObjectCollection $customers  the related object to use as filter
  * @param     string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
  *
  * @return                 KotaQuery The current query, for fluid interface
  * @throws PropelException - if the provided filter is invalid.
  */
 public function filterByCustomers($customers, $comparison = null)
 {
     if ($customers instanceof Customers) {
         return $this->addUsingAlias(KotaPeer::ID, $customers->getIdKota(), $comparison);
     } elseif ($customers instanceof PropelObjectCollection) {
         return $this->useCustomersQuery()->filterByPrimaryKeys($customers->getPrimaryKeys())->endUse();
     } else {
         throw new PropelException('filterByCustomers() only accepts arguments of type Customers or PropelCollection');
     }
 }