CakePHP

Including related fields in CakePHP 3.0

Being a CakePHP newbie I found it hard to find any information on this topic, and the answer is in fact really really simple. The answer $project = $this->Projects->get($id, [ 'contain' => [ 'Customers', 'Estimates' => [ 'Types', 'Projects' ], 'Logs' => [ 'Types', 'Projects' ], 'Statuses' ] ]); The Read more…

By ohlzon, ago