mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
DDC-995: Expr::literal problem #1242
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @doctrinebot on GitHub (Jan 22, 2011).
Originally assigned to: @beberlei on GitHub.
Jira issue originally created by user bandirsen:
I'm not sure if this Doctrine 2 default behavior or a bug
When I try to call Expr::literal directly in an user class it produce error:
" Call to undefined method AnUserClass::_quoteLiteral() "
here are code example:
calling $AnUserClass->test() will produce the error.
I see that internaly *Expr::literal()* static method calling $this->_quoteLiteral() method,
IMO it should self::_quoteLiteral() since it is a class level method not instance level method.
Please close this report if this is not a bug or already fixed.
Regards
@doctrinebot commented on GitHub (Jan 22, 2011):
Comment created by bandirsen:
forget to set priority, affected version and component
sorry for this, I not fluent on using Jira :(
@doctrinebot commented on GitHub (Jan 23, 2011):
Comment created by @beberlei:
Where did you see Expr being used as static class? Its an instance/object to be used $qb->expr()->literal(), you can instantiate it in your code using new Expr() and call $expr->literal().
@doctrinebot commented on GitHub (Jan 23, 2011):
Issue was closed with resolution "Invalid"