1$this->MemberLoginMethod->id = $id;
2$this->MemberLoginMethod->saveField('enabled', !$enabled);
3
1$data = [
2 [
3 'title' => 'First post',
4 'published' => 1
5 ],
6 [
7 'title' => 'Second post',
8 'published' => 1
9 ],
10];
11
12$articles = $this->getTableLocator()->get('Articles');
13$entities = $articles->newEntities($data);
14$result = $articles->saveMany($entities);