Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions en/orm/associations.rst
Original file line number Diff line number Diff line change
Expand Up @@ -552,7 +552,7 @@ Possible keys for belongsToMany association arrays include:
- **sort**: an array of find() compatible order clauses.
- **dependent**: When the dependent key is set to ``false``, and an entity is
deleted, the data of the join table will not be deleted.
- **through**: Allows you to provide a either the name of the Table instance you
- **through**: Allows you to provide either the name of the Table instance you
want used on the join table, or the instance itself. This makes customizing
the join table keys possible, and allows you to customize the behavior of the
pivot table.
Expand Down Expand Up @@ -639,7 +639,7 @@ following models::
public function initialize(array $config)
{
$this->belongsToMany('Courses', [
'through' => 'CourseMemberships',
'through' => 'CoursesMemberships',
]);
}
}
Expand All @@ -649,7 +649,7 @@ following models::
public function initialize(array $config)
{
$this->belongsToMany('Students', [
'through' => 'CourseMemberships',
'through' => 'CoursesMemberships',
]);
}
}
Expand Down