# |
Jan 3rd 2020, 17:28 |
dereuromark |
in 4.x it is just more visible now as it blows up more "red" :) |
# |
Jan 3rd 2020, 17:28 |
dereuromark |
one should only use entity or null |
# |
Jan 3rd 2020, 17:27 |
dereuromark |
https://github.com/dereuromark/upgrade/blob/master/src/Shell/Task/TemplatesTask.php#L99-L104 This is a few years old autofixer for those things. |
# |
Jan 3rd 2020, 17:27 |
daniel.upshaw |
Thanks |
# |
Jan 3rd 2020, 17:27 |
daniel.upshaw |
name in a string |
# |
Jan 3rd 2020, 17:27 |
daniel.upshaw |
I thought I remembered being about to use the model |
# |
Jan 3rd 2020, 17:26 |
daniel.upshaw |
Oh hrm |
# |
Jan 3rd 2020, 17:26 |
daniel.upshaw |
Whereas before it would parse the model? |
# |
Jan 3rd 2020, 17:26 |
dereuromark |
was already cake3 |
# |
Jan 3rd 2020, 17:26 |
dereuromark |
not really |
# |
Jan 3rd 2020, 17:26 |
daniel.upshaw |
That's new, right? |
# |
Jan 3rd 2020, 17:26 |
daniel.upshaw |
Ah |
# |
Jan 3rd 2020, 17:26 |
daniel.upshaw |
If I use an actual entity is does render |
# |
Jan 3rd 2020, 17:26 |
dereuromark |
$user - the entity |
# |
Jan 3rd 2020, 17:25 |
daniel.upshaw |
I wonder if this is from a change in Cake4 |
# |
Jan 3rd 2020, 17:25 |
daniel.upshaw |
```<?= $this->Form->create('User') ?>``` |
# |
Jan 3rd 2020, 17:25 |
slackebot |
<daniel.upshaw> |
# |
Jan 3rd 2020, 15:02 |
rudy1976s |
is there a way to close the connection once result has been retrieved? |
# |
Jan 3rd 2020, 15:02 |
slackebot |
<rudy1976s> |
# |
Jan 3rd 2020, 15:01 |
rudy1976s |
I am currently connecting to SQLserver using a tablke connection like the following |
# |
Jan 3rd 2020, 15:01 |
rudy1976s |
Good 2020 to all!!! |
# |
Jan 3rd 2020, 12:51 |
javier.villanueva |
In your CustomerTable you should have a hasMany relation with Inboxes |
# |
Jan 3rd 2020, 12:50 |
javier.villanueva |
$this->Customers->Inboxes->find('all')->order(['Inboxe.created' => 'DESC') |
# |
Jan 3rd 2020, 12:50 |
javier.villanueva |
I think that is better find inboxes directly, |
# |
Jan 3rd 2020, 12:48 |
javier.villanueva |
do you want 50 customers or 50 inboxes? |
# |
Jan 3rd 2020, 08:15 |
rk.thedigifrog |
@jotpe inner join required |
# |
Jan 3rd 2020, 08:05 |
rk.thedigifrog |
yes |
# |
Jan 3rd 2020, 07:56 |
jotpe |
Not sure @rk.thedigifrog but do you need the innerJoinWith? Why don't you stick to conventions and associate CustomersTable with the InboxTable (inbox_id in Customers or customer_id in Inboxes)? |
# |
Jan 3rd 2020, 07:50 |
jotpe |
Morning, people! |
# |
Jan 3rd 2020, 06:40 |
rk.thedigifrog |
Please have a look on table structure screenshot : I want to get all customers group by customer_id and latest inbox record created `$this->Customers->find('all',['contain' => ['Inboxes']])->innerJoinWith('Inboxes')->order(['Inboxes.created'=> 'DESC' ])->group('Customers.id')->limit(50)->toArray();` |
# |
Jan 3rd 2020, 06:22 |
rk.thedigifrog |
Want to get record group by foreign key and created DESC |
# |
Jan 2nd 2020, 19:55 |
ricksaccous |
it depends how much time you are willing to put in so just research it though |
# |
Jan 2nd 2020, 19:51 |
luizcmarin |
"it's worth it to venture out of your comfort zone a bit and learn how to create an e-commerce store with just cake" :+1: |
# |
Jan 2nd 2020, 19:50 |
ricksaccous |
shopify |
# |
Jan 2nd 2020, 19:49 |
ricksaccous |
there are some other ones |
# |
Jan 2nd 2020, 19:49 |
ricksaccous |
what is that other one that's popular |
# |
Jan 2nd 2020, 19:49 |
ricksaccous |
@luizcmarin in my opinion it's worth it to venture out of your comfort zone a bit and learn how to create an e-commerce store with just cake but there are solutions built around ecommerce (Magento, Drupal Commerce, some WP solution) out there. Either way it's going to be a lot of reading to customize anything. I don't have experience with squarespace but that's more of a package deal where the work is done for you I think. |
# |
Jan 2nd 2020, 19:46 |
niel45 |
@luizcmarin seriously consider using something like SquareSpace if you just need something simple. |
# |
Jan 2nd 2020, 19:45 |
luizcmarin |
if there's nothing in cake, look for something else ... joomla, for example. I don't know ... I never had to do that. My 'world' was desktop (clipper, delphi, clarion, ... cobol!) |
# |
Jan 2nd 2020, 19:43 |
ricksaccous |
there's just more to it than you might initially think |
# |
Jan 2nd 2020, 19:43 |
ricksaccous |
i don't think it's that hard |