7939 Posts in 1472 Topics by 944 members
|Go to End|
7 August 2012 at 10:30pm
I have a many_many (Event -> Images (DataObject with additional Fields) relation and using the ManyManyDataObjectManager to manage it.
I go through the ModalAdmin and set up my new Event.
In the DataObjectManager I add a new image (through the popup-form) that is then created but not attached to the current event.
Is there any option to catch the current EventID in the popupform and add it automagically?
25 August 2012 at 1:32am Last edited: 25 August 2012 1:32am
Have you included
static $has_one = array (
'Photo' => 'Image'
in Event? It should automatically add the ID from the photo to the Event table.
|Go to Top|