Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
FIX symbiote#309 Support ManyManyThroughList in EditableColumns
The ManyManyThrough fields must be specified without comma, hence its name must be unique in the joined set of fields. For example, given the following DataObjects: ``` class Team extends DataObject { private static $many_many = [ "Supporters" => [ 'through' => TeamSupporter::class, 'from' => 'Team', 'to' => 'Supporter', ] ]; } class Supporter extends DataObject { private static $belongs_many_many = [ 'Supports' => Team::class, ]; } class TeamSupporter extends DataObject { private static $db = [ 'Ranking' => 'Int', ]; private static $has_one = [ 'Team' => Team::class, 'Supporter' => Supporter::class, ]; } ``` you should refer to the ranking field with `Ranking`, not with `TeamSupporter.Ranking`.
- Loading branch information