Consider opening a pull-request with your suggested approach to fix the
problem.

Marco Pivetta

http://twitter.com/Ocramius

http://ocramius.github.com/

On 17 November 2014 09:23, IoanBadila <[email protected]> wrote:

> Hi,
> I see that Doctrine\ORM\Query\SqlWalker::tableAliasMap and
> tableAliasCounter are private properties but this doesn't scale well with
> public Doctrine\ORM\Query\SqlWalker::getSQLTableAlias($tableName, $dqlAlias
> = '')
>
>
>     public function getSQLTableAlias($tableName, $dqlAlias = '')
>     {
>         $tableName .= ($dqlAlias) ? '@[' . $dqlAlias . ']' : '';
>
>         if ( ! isset($this->tableAliasMap[$tableName])) {
>             $this->tableAliasMap[$tableName] =
> strtolower(substr($tableName, 0, 1)) . $this->tableAliasCounter++ . '_';
>         }
>
>         return $this->tableAliasMap[$tableName];
>     }
>
> For me, getSQLTableAlias() is useful in my custom walker but I can't
> actually use it without exposing tableAliasMap and tableAliasCounter.
>
> Thanks,
> Ioan Badila
>
> --
> You received this message because you are subscribed to the Google Groups
> "doctrine-user" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/doctrine-user.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"doctrine-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/doctrine-user.
For more options, visit https://groups.google.com/d/optout.

Reply via email to