When using this method, all entities in $targetEntities will be appended to
the source entity's property corresponding to this association object.
This method does not check link uniqueness.
### Example:
$newTags = $tags->find('relevant')->toArray();
$articles->association('tags')->link($article, $newTags);
$article->get('tags') will contain all tags in $newTags after liking
public link ( Cake\Datasource\EntityInterface $sourceEntity, array $targetEntities, array $options = [] ) : boolean | ||
$sourceEntity | Cake\Datasource\EntityInterface | the row belonging to the `source` side of this association |
$targetEntities | array | list of entities belonging to the `target` side of this association |
$options | array | list of options to be passed to the internal `save` call |
return | boolean | true on success, false otherwise |