nicolaas

this will basically ensure that we will NEVER has a draft File in the database.

nicolaas

well, I guess the question is basically: can you publish an object onAfterWrite

dorsetdigital

Can you provide some actual examples? It's all a bit theoretical at the moment. It ought to work

nicolaas

e.g. HTMLEdtitorField in combination with a publishing tool

nicolaas

well, the client complaints that in some cases she still has to publish files

dorsetdigital
  1. private static $has_one = [
  2. 'SomeFile' => File::class
  3. ]
  4.  
  5. private static $owns = [
  6. 'SomeFile'
  7. ];