Matthias Andreas Benkard | 7b2a3a1 | 2021-08-16 10:57:25 +0200 | [diff] [blame^] | 1 | <?php |
| 2 | |
| 3 | namespace LdapRecord\Models\ActiveDirectory; |
| 4 | |
| 5 | class ForeignSecurityPrincipal extends Entry |
| 6 | { |
| 7 | /** |
| 8 | * The object classes of the LDAP model. |
| 9 | * |
| 10 | * @var array |
| 11 | */ |
| 12 | public static $objectClasses = ['foreignsecurityprincipal']; |
| 13 | |
| 14 | /** |
| 15 | * The groups relationship. |
| 16 | * |
| 17 | * Retrieves groups that the current security principal is apart of. |
| 18 | * |
| 19 | * @return \LdapRecord\Models\Relations\HasMany |
| 20 | */ |
| 21 | public function groups() |
| 22 | { |
| 23 | return $this->hasMany(Group::class, 'member'); |
| 24 | } |
| 25 | } |