@@ -3,6 +3,10 @@ discard block |
||
| 3 | 3 | namespace Ubiquity\orm\traits; |
| 4 | 4 | |
| 5 | 5 | trait OrmUtilsFieldsTrait { |
| 6 | + |
|
| 7 | + /** |
|
| 8 | + * @param string $keyAnnotation |
|
| 9 | + */ |
|
| 6 | 10 | abstract public static function getAnnotationInfo($class, $keyAnnotation); |
| 7 | 11 | |
| 8 | 12 | public static function getFieldTypes($className) { |
@@ -55,6 +59,9 @@ discard block |
||
| 55 | 59 | return \array_diff($fieldNames, $notSerializable); |
| 56 | 60 | } |
| 57 | 61 | |
| 62 | + /** |
|
| 63 | + * @param string $class |
|
| 64 | + */ |
|
| 58 | 65 | public static function getFormAllFields($class){ |
| 59 | 66 | $result=self::getSerializableFields($class); |
| 60 | 67 | if ($manyToOne=self::getAnnotationInfo($class, "#manyToOne")) { |