# |
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 |
# |
Jan 7th 2019, 20:48 |
phpnut |
Thank everyone else now they’ve made major changes since I’ve touched the code lol |
# |
Jan 7th 2019, 20:48 |
challgren |
Nice to meet you and thanks for the framework! |
# |
Jan 7th 2019, 20:48 |
phpnut |
Well I’m founder and co founder of both... |
# |
Jan 7th 2019, 20:47 |
challgren |
Ahh ok yeah admad mentioned that. Just the way things are interlinked it appears that CakeDC is involved in the core |