We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 46adc39 commit 9ffb532Copy full SHA for 9ffb532
src/Ubiquity/attributes/AttributesEngine.php
@@ -137,6 +137,14 @@ public static function isMany(object $annotation): bool {
137
return ($annotation instanceof OneToMany) || ($annotation instanceof ManyToMany);
138
}
139
140
+ public static function isOneToMany(object $annotation): bool {
141
+ return $annotation instanceof OneToMany;
142
+ }
143
+
144
+ public static function isManyToMany(object $annotation): bool {
145
+ return $annotation instanceof ManyToMany;
146
147
148
public function is(string $key, object $annotation): bool {
149
$class = self::$registry[$key] ?? null;
150
if ($class !== null) {
0 commit comments