public function filterByLegalform($legalform = null, $comparison = null)
    {
        if (null === $comparison) {
            if (is_array($legalform)) {
                $comparison = Criteria::IN;
            } elseif (preg_match('/[\%\*]/', $legalform)) {
                $legalform = str_replace('*', '%', $legalform);
                $comparison = Criteria::LIKE;
            }
        }

        return $this->addUsingAlias(CustomerPeer::LEGALFORM, $legalform, $comparison);
    }