Log message #3944497

# At Username Text
# Nov 14th 2016, 05:10 savant that happens in development :)
# Nov 14th 2016, 05:10 savant no worries
# Nov 14th 2016, 05:10 savant heh
# Nov 14th 2016, 05:10 Leidenfrost Don't get me wrong, I'd love to upgrade and fix it to something actually good. There are a lot of constraints, though
# Nov 14th 2016, 05:03 savant heh ok
# Nov 14th 2016, 05:03 Leidenfrost With very fat controllers and thin models
# Nov 14th 2016, 05:02 Leidenfrost It's a pretty abandoned project, but the client is still paying for it
# Nov 14th 2016, 05:02 savant ok
# Nov 14th 2016, 05:02 Leidenfrost Because I need to scan all the project for deprecated functions for every version change.
# Nov 14th 2016, 05:01 savant why not latest 2.9.2?
# Nov 14th 2016, 05:01 Leidenfrost Well, to 2.5.x
# Nov 14th 2016, 05:01 Leidenfrost I'm trying to upgrade from 2.2 to 2.5.4
# Nov 14th 2016, 05:01 savant but doing that on a large app is more or less the same as upgrading to cake3
# Nov 14th 2016, 05:01 Leidenfrost The point of the upgrade is to use PHPUnit within cake and implement a decent unit testing.
# Nov 14th 2016, 05:01 savant which works pretty well
# Nov 14th 2016, 05:01 savant you can turn it on on a find-by-find basis
# Nov 14th 2016, 05:00 savant unless you have good unit tests, i wouldnt use that plugin
# Nov 14th 2016, 04:59 Leidenfrost Sadly, the client is too stingy to pay for an upgrade
# Nov 14th 2016, 04:58 savant it mostly works, but honestly I would just upgrade to 3.x
# Nov 14th 2016, 04:58 savant https://github.com/josegonzalez/cakephp-entity
# Nov 14th 2016, 04:58 Leidenfrost I'm interested
# Nov 14th 2016, 04:58 Leidenfrost Do you have the url?
# Nov 14th 2016, 04:58 savant you'd need a plugin - one I maintained - to use objects in 2.x
# Nov 14th 2016, 04:57 savant the orm returns arrays in 2.x
# Nov 14th 2016, 04:57 savant not for the orm
# Nov 14th 2016, 04:57 Leidenfrost It doesn't?
# Nov 14th 2016, 04:57 savant heh
# Nov 14th 2016, 04:57 Leidenfrost Thanks
# Nov 14th 2016, 04:57 Leidenfrost Oh god I found the culprit. It's an Afterfind() method
# Nov 14th 2016, 04:57 savant again, cakephp 2.x doesnt use objects
# Nov 14th 2016, 04:57 Leidenfrost Yes, from the PDO mysql result to a Cake object
# Nov 14th 2016, 04:57 savant cakephp 2.x doesnt use objects in the orm
# Nov 14th 2016, 04:56 savant translated into an object?
# Nov 14th 2016, 04:56 Leidenfrost For some reason when it's translated to an object, the framework hides the password field. Even if it's predetermined cake functionality.
# Nov 14th 2016, 04:56 savant i would also clear your model cache
# Nov 14th 2016, 04:56 savant do you have a beforeFind that strips data
# Nov 14th 2016, 04:56 Leidenfrost Yep, found the query behind the find(). It's a normal query asking for the user model and its associations. It returns the data as normal.
# Nov 14th 2016, 04:54 savant just stating whats what
# Nov 14th 2016, 04:54 savant yep
# Nov 14th 2016, 04:54 Leidenfrost Yes, but upgrading from 2.x to 3.x requires a lot of work
# Nov 14th 2016, 04:53 savant no extra plugin necessary