public function behaviors() {
	    $aBehaviors = [];

	    // Add the time stamp behavior
        $aBehaviors[] = [
            'class' => TimestampBehavior::className(),
            'createdAtAttribute' => 'created',
            'updatedAtAttribute' => 'modified',
            'value' => new Expression('NOW()'),
        ];

        // Get the imagemanager module from the application
        $moduleImageManager = Yii::$app->getModule('imagemanager');
        /* @var $moduleImageManager Module */
        if ($moduleImageManager !== null) {
            // Module has been loaded
            if ($moduleImageManager->setBlameableBehavior) {
                // Module has blame able behavior
                $aBehaviors[] = [
                    'class' => BlameableBehavior::className(),
                    'createdByAttribute' => 'createdBy',
                    'updatedByAttribute' => 'modifiedBy',
                ];
            }
        }

		return $aBehaviors;
	}
public function behaviors() {
	    $aBehaviors = [];

	    // Add the time stamp behavior
        $aBehaviors[] = [
            'class' => TimestampBehavior::className(),
            'createdAtAttribute' => 'created',
            'updatedAtAttribute' => 'modified',
            'value' => new Expression('NOW()'),
        ];

        // Get the imagemanager module from the application
        $moduleImageManager = Yii::$app->getModule('imagemanager');
        /* @var $moduleImageManager Module */
        if ($moduleImageManager !== null) {
            // Module has been loaded
            if ($moduleImageManager->setBlameableBehavior) {
                // Module has blame able behavior
                $aBehaviors[] = [
                    'class' => BlameableBehavior::className(),
                    'createdByAttribute' => 'createdBy',
                    'updatedByAttribute' => 'modifiedBy',
                ];
            }
        }

		return $aBehaviors;
	}
public function behaviors ( ) { $ aBehaviors = [ ] ; // Add the time stamp behavior
 $ aBehaviors [ ] = [ 'class' => TimestampBehavior :: className ( ) , 'createdAtAttribute' => 'created' , 'updatedAtAttribute' => 'modified' , 'value' => new Expression ( 'NOW()' ) , ] ; // Get the imagemanager module from the application
 $ moduleImageManager = Yii :: $ app -> getModule ( 'imagemanager' ) ; /* @var $moduleImageManager Module */ if ( $ moduleImageManager !== null ) { // Module has been loaded
 if ( $ moduleImageManager -> setBlameableBehavior ) { // Module has blame able behavior
 $ aBehaviors [ ] = [ 'class' => BlameableBehavior :: className ( ) , 'createdByAttribute' => 'createdBy' , 'updatedByAttribute' => 'modifiedBy' , ] ; } } return $ aBehaviors ; }
Set Created date to now
Set Created date to now