implemented all bulk actions for Subscribers

This commit is contained in:
Jonathan Labreuille
2015-09-16 19:44:46 +02:00
parent 4e6768c4f1
commit cbcd614b6f
7 changed files with 319 additions and 29 deletions

View File

@ -15,6 +15,13 @@ class Subscriber extends Model {
));
}
function delete() {
// delete all relations to segments
SubscriberSegment::where('subscriber_id', $this->id)->deleteMany();
parent::delete();
}
static function search($orm, $search = '') {
if(strlen(trim($search) === 0)) {
return $orm;