File tree Expand file tree Collapse file tree 1 file changed +8
-6
lines changed
src/Ubiquity/attributes/items Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change 99 * Annotation OneToMany.
1010 * usage :
1111 * - #[OneToMany(mappedBy:"memberName",className:"classname")]
12+ * - #[OneToMany(mappedBy:"memberName",className:"classname",cascade:["remove"])]
1213 *
1314 * @author jc
14- * @version 1.0.0
15+ * @version 1.0.1
1516 */
1617#[Attribute(Attribute::TARGET_PROPERTY )]
1718class OneToMany extends BaseAttribute {
1819 use BaseAnnotationTrait;
19-
20+
2021 public string $ mappedBy ;
2122 public string $ className ;
22-
23- public function __construct (string $ mappedBy ,string $ className ){
24- $ this ->mappedBy =$ mappedBy ;
25- $ this ->className =$ className ;
23+ public ?array $ cascade ;
24+
25+ public function __construct (string $ mappedBy , string $ className ) {
26+ $ this ->mappedBy = $ mappedBy ;
27+ $ this ->className = $ className ;
2628 }
2729}
You can’t perform that action at this time.
0 commit comments