aboutsummaryrefslogtreecommitdiff
path: root/lib/models/PersonalNotificationsUser.php
blob: e8f74d8b52c3784ee8b67406e40148b0451369e7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
<?php

/**
 * @license GPL2 or any later version
 *
 * @property array $id alias for pk
 * @property int $personal_notification_id database column
 * @property string $user_id database column
 * @property int $seen database column
 * @property PersonalNotifications $notification belongs_to PersonalNotifications
 */
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);
    }
}