Binds files to model instances. Based on the attachment class.
| key_from: | Calculated from the primary key. |
|---|---|
| attachment_config: | |
Array for attachment configuration. dir key is optional, calculated from model and relation names. See also |
|
In this case, each item of the model have 2 attachments: avatar and cv.
<?php
protected static $_attachment = array(
'avatar' => array(),
'cv' => array(),
);