Is it possible to stop saving a model from a CActiveRecordBehavior?
for example
<?php
class RepeaterBehavior extends CActiveRecordBehavior {
public function beforeSave($event) {
if ($condition == true) {
// stop saving the model
}
}
}
I’ve tried returning false but the model still saving thanks
please help