I have a following requirement:
Custom document type my:Document (inherited from cm:content) should always have my:DataFile attached to it.
As a result we should have:
1. When we create my:Document it should always have one mandatory my:DataFile.
2. When we delete my:Document - my:DataFile is deleted as well.
3. my:DataFile should not be visible for the users (in share ui).
Any suggestions or samples will be appreciated.