Hi team,
I have a problem when editing the form (not gridfield at backend). I have
class Channel extends DataObject {
private static $db = array(
'ChannelTitle' => 'Varchar(255)',
'ChannelDescription' => 'Text'
);
private static $many_many = array(
'Videos' => 'Video'
);
private static $summary_fields = array(
'ChannelTitle'
);
private static $many_many_extraFields = array(
'Videos' => array(
'PublishedDate' => 'SS_Datetime',
'UnpublishedDate' => 'SS_Datetime'
)
);
}
And
class Video extends DataObject {
const IMAGE_MAX_FILE_SIZE = 1000000;
const VIDEO_MAX_FILE_SIZE = 500000000;
public static $image_extension = array('jpg', 'jpeg', 'gif', 'png');
public static $video_extension = array('mp4', 'ogg', 'avi', 'mov');
private static $db = array(
'VideoTitle' => 'Varchar(255)',
'VideoDescription' => 'Text'
);
private static $has_one = array(
'VideoImage' => 'Image',
'VideoFile' => 'File',
'Owner' => 'Member'
);
private static $has_many = array(
'Comments' => 'VideoComment'
);
private static $belongs_many_many = array(
'VideoCategories' => 'VideoCategory',
'Channels' => 'Channel',
);
);
Now i want to add value manually to table Channel_Videos for the doeditform. I tried with getManyManyComponent without being successful. Any help really appreciate