@@ -640,18 +640,19 @@ public function hasMany($associated, array $options = []) {
640
640
*
641
641
* The options array accept the following keys:
642
642
*
643
- * - className: The class name of the target table object
644
- * - targetTable: An instance of a table object to be used as the target table
645
- * - foreignKey: The name of the field to use as foreign key
643
+ * - className: The class name of the target table object.
644
+ * - targetTable: An instance of a table object to be used as the target table.
645
+ * - foreignKey: The name of the field to use as foreign key.
646
+ * - targetForeignKey: The name of the field to use as the target foreign key.
646
647
* - joinTable: The name of the table representing the link between the two
647
648
* - through: If you choose to use an already instantiated link table, set this
648
649
* key to a configured Table instance containing associations to both the source
649
650
* and target tables in this association.
650
651
* - cascadeCallbacks: Set to true if you want CakePHP to fire callbacks on
651
652
* cascaded deletes. If false the ORM will use deleteAll() to remove data.
652
653
* When true join/junction table records will be loaded and then deleted.
653
- * - conditions: array with a list of conditions to filter the join with
654
- * - sort: The order in which results for this association should be returned
654
+ * - conditions: array with a list of conditions to filter the join with.
655
+ * - sort: The order in which results for this association should be returned.
655
656
* - strategy: The strategy to be used for selecting results Either 'select'
656
657
* or 'subquery'. If subquery is selected the query used to return results
657
658
* in the source table will be used as conditions for getting rows in the
0 commit comments