/** * Wrapped so we can hook notifications */ function create($notify = true, $event = false) { $ret = parent::create(); if ($ret && $notify) { $this->notify('add', $event); } return $ret; }