Skip to content

Commit

Permalink
Adding docblock for saveStrategy
Browse files Browse the repository at this point in the history
  • Loading branch information
lorenzo committed Dec 18, 2013
1 parent 2a12b22 commit 8f6b962
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Cake/ORM/Table.php
Expand Up @@ -640,6 +640,10 @@ public function hasMany($associated, array $options = []) {
* 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
* target table.
* - saveStrategy: Either 'append' or 'replace'. Indicates the mode to be used
* for saving associated entities. The former will only create new links
* between both side of the relation and the latter will do a wipe and
* replace to create the links between the passed entities when saving.
*
* This method will return the association object that was built.
*
Expand Down Expand Up @@ -1516,7 +1520,7 @@ public function __call($method, $args) {
* Override this method if you want a table object to use custom
* marshalling logic.
*
* @param boolean $safe Whether or not this marshaller
* @param boolean $safe Whether or not this marshaller
* should be in safe mode.
* @return Cake\ORM\Marhsaller;
* @see Cake\ORM\Marshaller
Expand Down

0 comments on commit 8f6b962

Please sign in to comment.