Reputation: 73
As we are starting the second part of my project. And we would like to first start completing the migration process before working on the second half of the project. I’ve a few concern about the migration process and would like to clear my doubts.
Currently, in my project we’ve used a lot of these function mentioned below
The below code is found in the controller and I noticed that you mention hydrate() (now enableHydration() / isHydrationEnabled()). What is the changes we need to make below?
$CustomersordersTable-> find()
-> select(['order_id'=>'Customerorders.order_id'])
-> where(['id IN' => $studentlist])
-> hydrate(false)
-> toArray();
I also understand that $this->request->data['id'] is deprecated and we need to $this->request->getData('id'). However, when adding details, right now we can't assign a random id value to this $this->request->getData('id'). I used to assign a random id with the below before saving into the table.
$this->request->data['id'] = TableRegistry::get('Customers')->find('guid');
Do you have a tentative release date for CakePHP 4.0?
Upvotes: 1
Views: 908
Reputation: 1
5.
$guid = TableRegistry::get('Customers')->find('guid');
$newData = $this->request->withData('id', $guid);
// get new request data
$newData->getData('id');
Upvotes: 0
Reputation: 25698
There is no release date for CakePHP4, just a roadmap without any dates. CakePHP is developed by volunteers, so work gets done as people have time and mood to work on it. Contributions are welcome. :)
Upvotes: 2