# |
Jan 7th 2019, 22:40 |
NickBusey |
Hmm, trying to write some tests for my controller traits, but the cakedc/users plugin api key auth stuff is interfering with it. Is there any easy way to disable that plugin for this test? |
# |
Jan 7th 2019, 22:40 |
sdevore |
I’m rewriting a project from 1.3 days into 3.6.x right now (should be ready for 3.7+) and it started life in the 0.9 or so version because even if Larry had hair, mine would be even grayer ;) |
# |
Jan 7th 2019, 21:04 |
challgren |
but mainly active =true|false |
# |
Jan 7th 2019, 21:04 |
challgren |
I will have 1 use case |
# |
Jan 7th 2019, 21:04 |
ricksaccous |
oh |
# |
Jan 7th 2019, 21:04 |
challgren |
Ohh I dont do any conditions on associations |
# |
Jan 7th 2019, 21:03 |
ricksaccous |
associations has a conditions option |
# |
Jan 7th 2019, 21:03 |
challgren |
And like if logged in as superuser showing a bit more details |
# |
Jan 7th 2019, 21:03 |
ricksaccous |
I see |
# |
Jan 7th 2019, 21:02 |
challgren |
Yeah my use case is mainly condition restrictions such as only to the current tenant or current user |
# |
Jan 7th 2019, 21:01 |
ricksaccous |
doesn't play well with some aspects of pagination |
# |
Jan 7th 2019, 21:01 |
ricksaccous |
be careful with using finders to define associatons |
# |
Jan 7th 2019, 21:01 |
ricksaccous |
i don't use finders too often, usually just make a method in the model |
# |
Jan 7th 2019, 21:00 |
challgren |
I liked my arrays as conditions but now with being able to modify the query its even better |
# |
Jan 7th 2019, 20:59 |
challgren |
Im starting to like the finders |
# |
Jan 7th 2019, 20:59 |
ricksaccous |
yeah streamlines a lot of CRUD |
# |
Jan 7th 2019, 20:58 |
challgren |
Took me a bit to grasp it but now I can see how powerful it is |
# |
Jan 7th 2019, 20:58 |
challgren |
I do not with that on you. But yeah the ORM in 3.x is nice |
# |
Jan 7th 2019, 20:58 |
challgren |
Lol yep! |
# |
Jan 7th 2019, 20:57 |
ricksaccous |
also known as rewriting most of the application |
# |
Jan 7th 2019, 20:57 |
ricksaccous |
fun stuff |
# |
Jan 7th 2019, 20:57 |
ricksaccous |
and even later i'm converting a 1.3 to 3.x |
# |
Jan 7th 2019, 20:57 |
ricksaccous |
but yeah, meh, i actually do have some 1.3 work to do later |
# |
Jan 7th 2019, 20:56 |
ricksaccous |
of course i prefer working in 3.x |
# |
Jan 7th 2019, 20:56 |
ricksaccous |
makes apps so much faster, and isn't too bad to migrate |
# |
Jan 7th 2019, 20:56 |
ricksaccous |
what's great is the performance hike from 1.2 to 1.3 |
# |
Jan 7th 2019, 20:53 |
challgren |
lol |
# |
Jan 7th 2019, 20:53 |
ricksaccous |
thank god someone put contain into 1.x |
# |
Jan 7th 2019, 20:53 |
challgren |
I do have a 2.x I want to get converted but I wrote a lot of bad code 3 years ago so its best to redo it the correct way |
# |
Jan 7th 2019, 20:52 |
phpnut |
:nauseated_face: |
# |
Jan 7th 2019, 20:52 |
ricksaccous |
actually i could think of three off the top of my head |
# |
Jan 7th 2019, 20:52 |
challgren |
Ewww |
# |
Jan 7th 2019, 20:52 |
phpnut |
I vomit a little each time I see an app from those old days |
# |
Jan 7th 2019, 20:52 |
ricksaccous |
I've worked on a few 1.3 apps, lol they are still out there |
# |
Jan 7th 2019, 20:51 |
phpnut |
I know someone that was still running a pre 1.3 app. I’m not sure if they upgraded or rewrote it. It’s their own personal project so they really didn’t need to make changes |
# |
Jan 7th 2019, 20:50 |
challgren |
And another is like 10 years old now |
# |
Jan 7th 2019, 20:50 |
challgren |
Feels like it! The project I worked on is like 3 years old now |
# |
Jan 7th 2019, 20:49 |
phpnut |
Nice, that’s not “too” old |
# |
Jan 7th 2019, 20:49 |
challgren |
Ohh yeah |
# |
Jan 7th 2019, 20:49 |
phpnut |
With the advances in php the framework has come a long way |
# |
Jan 7th 2019, 20:49 |
challgren |
I started using it around 2.8 if I remember |