[color="#0000FF"]table: Item
-ID
-reference
table: Reference
-ID
-reference
-FK_Tablename_ID
table: ExtraCharge
-ID
-title
[/color]
"Reference" => array( self::BELONGS_TO, "Reference", "reference",
"condition" =>'rel_Reference.FK_Tablename_ID = 4',
),
"rel_ExtraCharge" => array( self::BELONGS_TO, "ExtraCharge", ["FK_ExtraCharge_ID" => "ID"],
'through' => "rel_Reference",
),
rel_Reference is working perfectly.
With rel_ExtraCharge I get
[color="#FF0000"]"Property "CBelongsToRelation.through" is not defined."[/color]
I must use these relations to enable extra charges to multiple items at the same time.
[color="#006400"]But why is the “through” doesn’t work?[/color]
Thank you for your time.