aboutsummaryrefslogtreecommitdiff
path: root/lib/models/PersonalNotificationsUser.php
blob: 3363bb5b8a7bb487ea860fd23d6275421353db7d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<?php

class PersonalNotificationsUser extends SimpleORMap
{
    protected static function configure($config = [])
    {
        $config['db_table'] = 'personal_notifications_user';

        $config['belongs_to']['notification'] = [
            'class_name'  => PersonalNotifications::class,
            'foreign_key' => 'personal_notification_id'
        ];

        parent::configure($config);
    }
}