Browse Source

Improve docblock example.

ADmad 11 years ago
parent
commit
5e3edad2cd
1 changed files with 3 additions and 5 deletions
  1. 3 5
      src/ORM/Table.php

+ 3 - 5
src/ORM/Table.php

@@ -571,14 +571,12 @@ class Table implements RepositoryInterface, EventListenerInterface {
  * as argument:
  *
  * {{{
- * $this->Comment->associations([
+ * $this->Posts->associations([
  * 		'belongsTo' => [
- * 			'Comments',
  * 			'Users' => ['className' => 'App\Model\Table\UsersTable']
  * 		],
- * 		'belongsToMany' => [
- * 			'Tags'
- * 		]
+ * 		'hasMany' => ['Comments'],
+ * 		'belongsToMany' => ['Tags']
  * ]);
  * }}}
  *