If you have seen the previous tool I built for converting raw SQL to CakePHP code you might have an idea what is coming. There was good feedback from the initial tool so I have built something similar for people migrating legacy apps and newcomers alike.
Instead of conversions, this time it helps find specific errors in your schema. For example if you are using a field like
user_id it will expâ€¦
There are a lot of newcomers asking the same question on CakePHP's IRC channel, Stack Overflow and various other places, and that question is how to convert a SQL query into the corresponding CakePHP code.
Once you have been using CakePHP for a while the ORM becomes second nature and its pretty easy to see how a query will fit into a
Model::find(). I normally break the SQL up into the various â€¦