Skip to content
This repository has been archived by the owner on Jul 16, 2023. It is now read-only.

Commit

Permalink
Updating getObservableEvents to better overwrite the original method
Browse files Browse the repository at this point in the history
  • Loading branch information
igorsantos07 committed Feb 25, 2014
1 parent 2d26521 commit 0a0238b
Showing 1 changed file with 7 additions and 11 deletions.
18 changes: 7 additions & 11 deletions src/LaravelBook/Ardent/Ardent.php
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,13 @@ public static function boot() {
}
}

public function getObservableEvents() {
return array_merge(
parent::getObservableEvents(),
array('validating', 'validated')
);
}

/**
* Register a validating model event with the dispatcher.
*
Expand Down Expand Up @@ -882,15 +889,4 @@ public function newQuery($excludeDeleted = true) {

return $builder;
}

public function getObservableEvents(){
return array_merge(
array(
'creating', 'created', 'updating', 'updated',
'deleting', 'deleted', 'saving', 'saved',
'restoring', 'restored', 'validating', 'validated'
),
$this->observables
);
}
}

0 comments on commit 0a0238b

Please sign in to comment.