Is there a “cake” way to reproduce the mysql “insert from select” behavior? I would like to get values from one model and insert in another one, without retrieving all data to my application, because there are tables with large amount of data and it will cause memory limit error.
Ex: $this->model1->saveAll($this->model2->find());
You cannot achieve that using solely Cake syntax. The best way to do this is to use $this->model->query() and write your own query inside.