Major brainfreeze I think. Really struggling to implement a ManyManyFileDataObjectManager.
I have a 'ResourcePage' which I would like to have a many-many relationship with a subclass of File, 'ResourceFile'.
ResourcePage has manymany of 'ResourceFiles' => 'ResourceFile' and Resource File has a belongs_many_many of 'ResourcePages' => 'ResourcePage' and the following is how I'm trying to initialise the ManyManyFileDOM.
'Name' => 'Name'
But TBH the above is me just taking a stab in the dark after many attempts. The error I get when trying to create a ResourcePage in the CMS is:
ERROR [Warning]: Missing argument 3 for FileDataObjectManager_Item::__construct(), called in /path/to/www/sapphire/forms/ComplexTableField.php on line 297 and defined
IN POST /admin/getitem?ID=108&ajax=1
Line 648 in /path/to/www/dataobject_manager/code/FileDataObjectManager.php
Is anyone able to correct the above code, or rather and preferably, show me an example of a working HasMany / ManyManyFileDataObjectManager? Would be most excellent.
Also, I'm currently using 2.4rc1.