src/Slashworks/AppBundle/Model/om/BaseRemoteAppQuery.php
public function filterByPublicKey($publicKey = null, $comparison = null)
    {
        if (null === $comparison) {
            if (is_array($publicKey)) {
                $comparison = Criteria::IN;
            } elseif (preg_match('/[\%\*]/', $publicKey)) {
                $publicKey = str_replace('*', '%', $publicKey);
                $comparison = Criteria::LIKE;
            }
        }

        return $this->addUsingAlias(RemoteAppPeer::PUBLIC_KEY, $publicKey, $comparison);
    }
public function filterByPublicKey($publicKey = null, $comparison = null)
    {
        if (null === $comparison) {
            if (is_array($publicKey)) {
                $comparison = Criteria::IN;
            } elseif (preg_match('/[\%\*]/', $publicKey)) {
                $publicKey = str_replace('*', '%', $publicKey);
                $comparison = Criteria::LIKE;
            }
        }

        return $this->addUsingAlias(RemoteAppPeer::PUBLIC_KEY, $publicKey, $comparison);
    }
public function filterByPublicKey ( $ publicKey = null , $ comparison = null ) { if ( null === $ comparison ) { if ( is_array ( $ publicKey ) ) { $ comparison = Criteria :: IN ; } elseif ( preg_match ( '/[\%\*]/' , $ publicKey ) ) { $ publicKey = str_replace ( '*' , '%' , $ publicKey ) ; $ comparison = Criteria :: LIKE ; } } return $ this -> addUsingAlias ( RemoteAppPeer :: PUBLIC_KEY , $ publicKey , $ comparison ) ; }
Filter the query on the public_key column

Example usage:
<code>
$query->filterByPublicKey('fooValue');   // WHERE public_key = 'fooValue'
$query->filterByPublicKey('%fooValue%'); // WHERE public_key LIKE '%fooValue%'
</code>

@param     string $publicKey The value to use as filter.
Accepts wildcards (* and % trigger a LIKE)
@param     string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL

@return RemoteAppQuery The current query, for fluid interface
Filter the query on the public_key column