From 140425084551cb7ef867f0f5ee9b9bd2e6689427 Mon Sep 17 00:00:00 2001 From: Mark Story Date: Fri, 11 Dec 2015 21:17:40 -0500 Subject: [PATCH] Add docs for HasMany saveStrategy. Refs cakephp/docs#3553 --- src/ORM/Table.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/ORM/Table.php b/src/ORM/Table.php index 355990ce64a..919cb1d7549 100644 --- a/src/ORM/Table.php +++ b/src/ORM/Table.php @@ -801,6 +801,10 @@ public function hasOne($associated, array $options = []) * When true records will be loaded and then deleted. * - conditions: array with a list of conditions to filter the join with * - sort: The order in which results for this association should be returned + * - saveStrategy: Either 'append' or 'replace'. When 'append' the current records + * are appended to any records in the database. When 'replace' associated records + * not in the current set will be removed. If the foreign key is a null able column + * or if `dependent` is true records will be orphaned. * - strategy: The strategy to be used for selecting results Either 'select' * or 'subquery'. If subquery is selected the query used to return results * in the source table will be used as conditions for getting rows in the