Hello,
i have three models: Machine, Package and ClosingPackage.
In Machine I have relation many_many = [ 'Packages' => 'Package' ] and additional options many_many_extraFields = [Packages' => ['MinWidth' => 'Int', 'MaxWidth' => 'Int']].
Now my question, I need define in this relation between Machine and Package additional info with model ClosingPackage. So, if I try add to many_many_extraFields model ClosingPackage like this: many_many_extraFields = [Packages' => ['MinWidth' => 'Int', 'MaxWidth' => 'Int', 'ClosingPackages' => 'ClosingPackage']], it's not working. In dev build I got error ,,DataObject::__construct passed The value 'ClosingPackages'. It's supposed to be passed an array, taken straight from the database. Perhaps you should use DataList::create()->First(); instead?".
Please, exists some way how i can define in many_many_extraFields some other model?
Thank for response, regards,
striky