1 | <?php |
||
23 | trait RelationsUtilityMethods |
||
24 | { |
||
25 | |||
26 | /** |
||
27 | * Gets the parent or related entity descriptor |
||
28 | * |
||
29 | * @return EntityDescriptorInterface |
||
30 | */ |
||
31 | abstract public function getParentEntityDescriptor(); |
||
32 | |||
33 | /** |
||
34 | * Gets parent entity class name |
||
35 | * |
||
36 | * @return string |
||
37 | */ |
||
38 | abstract public function getParentEntity(); |
||
39 | |||
40 | /** |
||
41 | * Gets the parent entity primary key field name |
||
42 | * |
||
43 | * @return string |
||
44 | */ |
||
45 | 4 | public function getParentPrimaryKey() |
|
51 | |||
52 | /** |
||
53 | * Gets parent entity repository |
||
54 | * |
||
55 | * @return \Slick\Orm\Repository\EntityRepository |
||
56 | */ |
||
57 | 2 | public function getParentRepository() |
|
61 | |||
62 | /** |
||
63 | * Gets the entity mapper of parent entity repository |
||
64 | * |
||
65 | * @return \Slick\Orm\EntityMapperInterface |
||
66 | */ |
||
67 | 2 | public function getParentEntityMapper() |
|
72 | |||
73 | /** |
||
74 | * Gets parent entity table name |
||
75 | * |
||
76 | * @return string |
||
77 | */ |
||
78 | 4 | public function getParentTableName() |
|
83 | |||
84 | /** |
||
85 | * Get parent entity fields collection |
||
86 | * |
||
87 | * @return FieldsCollection|FieldDescriptor[] |
||
88 | */ |
||
89 | 2 | public function getParentFields() |
|
94 | } |