Attachment ########## Binds files to model instances. Based on the :doc:`attachment class `. Configuration ************* :key_from: Calculated from the primary key. :attachment_config: Array for attachment configuration. ``dir`` key is optional, calculated from model and relation names. .. seealso:: :doc:`Attachment class `. Examples ======== In this case, each item of the model have 2 attachments: avatar and cv. .. code-block:: php array(), 'cv' => array(), );