Merge pull request #9464 from ravage84/2.x-actsas-docblock

Minor DocBlock improvement
This commit is contained in:
Mark Story 2016-09-16 19:16:15 -04:00 committed by GitHub
commit a696d33bb0

View file

@ -473,9 +473,14 @@ class Model extends Object implements CakeEventListener {
/**
* List of behaviors to load when the model object is initialized. Settings can be
* passed to behaviors by using the behavior name as index. Eg:
* passed to behaviors by using the behavior name as index.
*
* public $actsAs = array('Translate', 'MyBehavior' => array('setting1' => 'value1'))
* For example:
*
* public $actsAs = array(
* 'Translate',
* 'MyBehavior' => array('setting1' => 'value1')
* );
*
* @var array
* @link http://book.cakephp.org/2.0/en/models/behaviors.html#using-behaviors