Skip to content

Commit 1629ef5

Browse files
committed
Update OneToMany.php
1 parent 169d1a3 commit 1629ef5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Ubiquity/attributes/items/OneToMany.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,9 @@ class OneToMany extends BaseAttribute {
2222
public string $className;
2323
public ?array $cascade;
2424

25-
public function __construct(string $mappedBy, string $className) {
25+
public function __construct(string $mappedBy, string $className, ?array $cascade = null) {
2626
$this->mappedBy = $mappedBy;
2727
$this->className = $className;
28+
$this->cascade = $cascade;
2829
}
2930
}

0 commit comments

Comments
 (0)