# |
Mar 29th 2019, 10:19 |
acosonic |
Well, now they have decided to make order in backend system, it might be good idea to work on migration later |
# |
Mar 29th 2019, 09:57 |
neon1024 |
I can’t find that one on YouTube, sorry |
# |
Mar 29th 2019, 09:54 |
neon1024 |
There was a good talk about that at Symfony meetup by Cieran McNulty |
# |
Mar 29th 2019, 09:54 |
neon1024 |
Parallel upgrades are a good solution here |
# |
Mar 29th 2019, 09:54 |
neon1024 |
The list isn’t endless. It might be big, but you’re not going to upgrade all those parts at the same time |
# |
Mar 29th 2019, 09:53 |
neon1024 |
https://www.youtube.com/watch?v=DtH__Iz9Mjs |
# |
Mar 29th 2019, 09:52 |
acosonic |
The codebase is massive, and it's mostly financial stuff, products, customers, account plans, coupons, promotions, landing page systems, invoices, re-occuring payments, blah-blah, the list is endless... |
# |
Mar 29th 2019, 09:52 |
neon1024 |
Let me find Mark’s talk where he outlines it all |
# |
Mar 29th 2019, 09:52 |
neon1024 |
Currently yes, but not once 4 is out |
# |
Mar 29th 2019, 09:51 |
acosonic |
So they say, they will be fixing Cake 2 stuff, when something like php upgrades broke it |
# |
Mar 29th 2019, 09:50 |
neon1024 |
So maybe not now, but soon you’ll want to think about leveraging newer code and php 7 |
# |
Mar 29th 2019, 09:49 |
neon1024 |
I would expect Cake 4 to be released before the end of the year |
# |
Mar 29th 2019, 09:49 |
neon1024 |
Do bear in mind that once Cake 4 is released Cake 2 will no longer be supported |
# |
Mar 29th 2019, 09:48 |
acosonic |
@neon1024 nope, just different backend admin theme, and fixing layout |
# |
Mar 29th 2019, 09:48 |
neon1024 |
Starting over? |
# |
Mar 29th 2019, 09:48 |
acosonic |
@val I was explaining earlier :slightly_smiling_face: couple of days ago |
# |
Mar 29th 2019, 09:47 |
val |
@acosonic Intriguing. Why? |
# |
Mar 29th 2019, 09:43 |
acosonic |
Good, my team had meeting to start upgrading old cake 2 based crm with new backend theme, once we started talking about features, we definitely decided never to go to another framework or even upgrade :) |
# |
Mar 29th 2019, 08:39 |
neon1024 |
How’s things? |
# |
Mar 29th 2019, 08:39 |
neon1024 |
Oh! Hello! |
# |
Mar 29th 2019, 08:37 |
birdy247 |
morning @neon1024 |
# |
Mar 29th 2019, 08:36 |
neon1024 |
Morning all |
# |
Mar 29th 2019, 08:12 |
val |
@bmudda nice article although it does not answer the question how to switch schemas without creating a new database connection |
# |
Mar 29th 2019, 00:37 |
rightscoreanalysis |
I have to do something in the befprePaginate event when using the CRUD plugin |
# |
Mar 29th 2019, 00:33 |
bmudda |
you can change the `limit` to the number you need |
# |
Mar 29th 2019, 00:33 |
bmudda |
``` public $paginate = [ 'page' => 1, 'limit' => 10, 'maxLimit' => 100, 'sortWhitelist' => [ 'id', 'first_name', 'last_name', 'email' ], ];``` |
# |
Mar 29th 2019, 00:32 |
bmudda |
@rightscoreanalysis have you tried using the paginate property in your controller? |
# |
Mar 28th 2019, 23:36 |
rightscoreanalysis |
atm I am getting the first 20 results only |
# |
Mar 28th 2019, 23:36 |
rightscoreanalysis |
using the Friends of Cake CRUD plugin - does anyone know how I can get remove the limit of Crud.index |
# |
Mar 28th 2019, 18:26 |
bango2 |
vs having to use where([ 'audio is' => $card->audio, ...]) in the case of NULL values |
# |
Mar 28th 2019, 18:26 |
bango2 |
$dups = $this->Card->find('all')->where([ 'audio' => $card->audio, ...])->toArray(); |
# |
Mar 28th 2019, 18:24 |
bango2 |
I'm trying to find partial duplicates of an entity, called a Card. I'm trying to figure out how to query for fields that can be null. When I do it the regular way, the duplicate check fails if a field is null. If i use the SQL keyword "is", like "is null", then it works, but theres no guarantee that field will always be null so I want to avoid using IS |
# |
Mar 28th 2019, 16:44 |
david |
yes, I did in that way. I have noticed that it breaks once I turn off debug. If I turn off and then on again, it's broken |
# |
Mar 28th 2019, 16:43 |
david |
yes, I did |
# |
Mar 28th 2019, 16:31 |
neon1024 |
@val Lol, I’m out! |
# |
Mar 28th 2019, 16:30 |
neon1024 |
@birdy247 I don’t see why not. You could get the Validator instance from the Table class and run it’s methods I would think |
# |
Mar 28th 2019, 16:18 |
val |
@neon1024 the use case is when each customer has its own database, the schemas are identical for each customer and cake app needs to retrieve data from multiple databases (from identical table of the customer database). Or simply to switch from once customer database to another. Creating new connections is too expensive. |
# |
Mar 28th 2019, 16:11 |
birdy247 |
Can an entity be tested against a validator without patching |
# |
Mar 28th 2019, 16:06 |
val |
too bad :( |
# |
Mar 28th 2019, 16:00 |
neon1024 |
I would think that the schema is a direct map of your database, which will have a connection. So I’d say no, there isn’t. You’d have to create a new connection |
# |
Mar 28th 2019, 16:00 |
ricksaccous |
but you can do it at run time |