File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
src/Ubiquity/attributes/items Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change 99 * Annotation JoinTable.
1010 * usages :
1111 * - #[JoinTable(name: "tableName")]
12- * - #[JoinTable(name: "tableName",joinColumns: "fieldname")]
13- * - #[JoinTable(name: "tableName",joinColumns: "fieldname",inverseJoinColumns: "fieldname")]
12+ * - #[JoinTable(name: "tableName",joinColumns: [ "fieldname"=>"value"] )]
13+ * - #[JoinTable(name: "tableName",joinColumns: [ "fieldname"=>"value"] ,inverseJoinColumns: [ "fieldname"=>"value"] )]
1414 *
1515 * @author jc
16- * @version 1.0.0
16+ * @version 1.0.1
1717 */
1818#[Attribute(Attribute::TARGET_PROPERTY )]
1919class JoinTable extends BaseAttribute {
2020 use BaseAnnotationTrait;
2121
2222 public string $ name ;
23- public ?string $ joinColumns ;
24- public ?string $ inverseJoinColumns ;
23+ public ?array $ joinColumns ;
24+ public ?array $ inverseJoinColumns ;
2525
26- public function __construct (string $ name , ?string $ joinColumns = null , ?string $ inverseJoinColumns = null ) {
26+ public function __construct (string $ name , ?array $ joinColumns = null , ?array $ inverseJoinColumns = null ) {
2727 $ this ->name = $ name ;
2828 $ this ->joinColumns = $ joinColumns ;
2929 $ this ->inverseJoinColumns = $ inverseJoinColumns ;
You can’t perform that action at this time.
0 commit comments