Fixing the problem with order and \Zend\Db\Sql\Expression #3017

Closed
wants to merge 2 commits into
from

3 participants

@shoseph

No description provided.

@Maks3w
Zend Framework member

Please add a test case

@ralphschindler
Zend Framework member

So your feature request is that you want to use expressions with order()? What do you need to do with an exression object that you can't already achieve with a string or array notation?

@shoseph

I found the problem when I needed to use the function "rand ()" to return the MySql random fields.

I checked that was implemented logic Sql \ Expression, I enabled only for "order ()".

@shoseph

Ps. In Zend Framework 1 was recommended to use "zend_db_expr()"

@ralphschindler
Zend Framework member

Merged to develop, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment