Code Duplication    Length = 10-10 lines in 2 locations

src/ORM/User/Entity.php 1 location

@@ 21-30 (lines=10) @@
18
 * @package Faulancer\ORM\Entity
19
 * @author  Florian Knapp <[email protected]>
20
 */
21
class Entity extends BaseEntity
22
{
23
24
    protected static $relations = [
25
        'roles' => [Role::class, ['id' => 'user_id'], 'users', 'userrole']
26
    ];
27
28
    protected static $tableName = 'user';
29
30
}

src/ORM/User/Role.php 1 location

@@ 14-23 (lines=10) @@
11
 *
12
 * @author  Florian Knapp <[email protected]>
13
 */
14
class Role extends BaseEntity
15
{
16
17
    protected static $relations = [
18
        'users' => [Entity::class, ['id' => 'role_id'], 'roles', 'userrole']
19
    ];
20
21
    protected static $tableName = 'role';
22
23
}