blob: 24c7f3b7dbd1da576d198ec5a7b057af6f021cf1 [file] [log] [blame]
Matthias Andreas Benkard7b2a3a12021-08-16 10:57:25 +02001<?php
2
3namespace LdapRecord\Models\FreeIPA;
4
5class User extends Entry
6{
7 /**
8 * The object classes of the LDAP model.
9 *
10 * @var array
11 */
12 public static $objectClasses = [
13 'top',
14 'person',
15 'inetorgperson',
16 'organizationalperson',
17 ];
18
19 /**
20 * Retrieve groups that the current user is apart of.
21 *
22 * @return \LdapRecord\Models\Relations\HasMany
23 */
24 public function groups()
25 {
26 return $this->hasMany(Group::class, 'member');
27 }
28}