After years of using CakePHP 2, I've migrated to CakePHP 3 a week ago. The new ORM is awesome, but it makes me stumble upon some basic things, which used to work back then and behave differently in the new version.
How am I supposed to build this query on the UsersTable in Cake's orgy of find(), where() and query() chain methods?
SELECT * FROM `users` WHERE `email` = "[email protected]" AND `password`= SHA1(MD5(CONCAT("somePassword", `salt`)))
I'll go without posting my trials of achieving this, I tried pretty much about adding expressions, conditions etc. Now I'm curious about how it really should be done.
Edit: This question is not about authentication, it is much more about how to perform such queries in CakePHP 3.