# |
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 |
# |
Nov 14th 2016, 04:53 |
savant |
in 3.x, its just an option we built into the framework |
# |
Nov 14th 2016, 04:53 |
Leidenfrost |
Thanks, that will come in handy. I usually use this: http://stackoverflow.com/questions/2521225/cakephp-get-last-query-run |
# |
Nov 14th 2016, 04:52 |
savant |
in that plugin, there is a MysqlLog datasource you can use |
# |
Nov 14th 2016, 04:52 |
savant |
https://github.com/cakephp/datasources |
# |
Nov 14th 2016, 04:51 |
savant |
to see what it's actually rinning |
# |
Nov 14th 2016, 04:51 |
savant |
which you can then use to turn on query logs |
# |
Nov 14th 2016, 04:51 |
savant |
Leidenfrost: I believe in 2.x you can use a logging datasource |
# |
Nov 14th 2016, 04:50 |
Leidenfrost |
For some reason, the find() method in BaseAuthentication.php can't retrieve the stored password |
# |
Nov 14th 2016, 04:50 |
Leidenfrost |
Hello all. I'm trying to upgrade from cake 2.2 to 2.4 and got this: https://www.reddit.com/r/cakephp/comments/5ctxa8/help_im_trying_to_upgrade_from_cake_22_to_24_but/ |
# |
Nov 14th 2016, 03:33 |
savant |
CakeBot: hi |
# |
Nov 14th 2016, 02:23 |
slackebot |
~book |
# |
Nov 14th 2016, 02:23 |
slackebot |
Command sent from Slack by savant: |
# |
Nov 14th 2016, 02:23 |
savant |
~book |
# |
Nov 14th 2016, 02:22 |
savant |
test |
# |
Oct 10th 2016, 08:43 |
maikh |
yes, it works better. spent so much time until yet with this shitty floating... |
# |
Oct 10th 2016, 08:42 |
admad |
@maikh yup use tables and avoid float and dompdf will be kept happy |