0

i have this sql code

"SELECT * FROM t_one order by
                                    (
                                    case t_one.status
                                      when 'valid'   then 1
                                      when 'invalid' then 2
                                      when 'aborted'   then 3
                                      when 'cancel'  then 4
                                      else 9999
                                    end
                                    )";

How can i convert this to zend db model functions

1 Answer 1

1

Maybe this could help:

http://zend-framework-community.634137.n4.nabble.com/SQL-Case-statement-in-Zend-Framework-td656393.html

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.