This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$model->saveFiles(); | |
$model->saveWithRelated(array('files'=>array('append'=>TRUE)))); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class DateFormatterBehavior extends CActiveRecordBehavior | |
{ | |
public $dateFields = array(); | |
public $allowNull = array(); // do not auto create a date for this field | |
public $dateFormat = 'short'; | |
private $owner; | |