2016-05-05から1日間の記事一覧
CakePHP3でDBからレコードを検索するときに「contain」という命令がありますよね。以下のような感じの命令です。 $authors = TableRegistry::get('Authors'); $records = $authors->find()->where(['Authors.author_id' => 1234])->contain(['Users']); これ…
CakePHP3でDBからレコードを検索するときに「contain」という命令がありますよね。以下のような感じの命令です。 $authors = TableRegistry::get('Authors'); $records = $authors->find()->where(['Authors.author_id' => 1234])->contain(['Users']); これ…