@@ -123,11 +123,12 @@ class SummitRegistrationPromoCode extends SilverstripeBaseModel
123
123
*/
124
124
protected $ allows_to_delegate ;
125
125
126
+ protected $ allows_reassign_related_tickets ;
126
127
/**
127
128
* @ORM\Column(name="AllowsReassignRelatedTickets", type="boolean")
128
129
* @var bool
129
130
*/
130
- protected $ allows_reassign_related_tickets ;
131
+ protected $ allows_to_reassign ;
131
132
132
133
/**
133
134
* @ORM\ManyToOne(targetEntity="models\summit\Summit", inversedBy="promo_codes")
@@ -302,7 +303,7 @@ public function __construct()
302
303
$ this ->valid_since_date = null ;
303
304
$ this ->valid_until_date = null ;
304
305
$ this ->allows_to_delegate = false ;
305
- $ this ->allows_reassign_related_tickets = true ;
306
+ $ this ->allows_to_reassign = true ;
306
307
$ this ->sent_date = null ;
307
308
$ this ->badge_features = new ArrayCollection ();
308
309
$ this ->allowed_ticket_types = new ArrayCollection ();
@@ -544,6 +545,8 @@ public function getClassName()
544
545
'summit_id ' => 'integer ' ,
545
546
'creator_id ' => 'integer ' ,
546
547
'allowed_ticket_types ' => 'array ' ,
548
+ 'allows_to_delegate ' => 'boolean ' ,
549
+ 'allows_to_reassign ' => 'boolean ' ,
547
550
];
548
551
549
552
/**
@@ -835,7 +838,7 @@ public function getMaxUsagePerOrder():int{
835
838
*/
836
839
public function isAllowsToReassignRelatedTickets (): bool
837
840
{
838
- $ res = $ this ->allows_reassign_related_tickets ;
841
+ $ res = $ this ->allows_to_reassign ;
839
842
if (is_null ($ res )){
840
843
Log::warning (sprintf ("SummitRegistrationPromoCode::isAllowsToReassignRelatedTickets promo code %s allows_reassign_related_tickets is null " , $ this ->id ));
841
844
$ res = true ;
@@ -847,8 +850,8 @@ public function isAllowsToReassignRelatedTickets(): bool
847
850
* @param bool $allows_to_delegate
848
851
* @return void
849
852
*/
850
- public function setAllowsToReassignRelatedTickets (bool $ allows_reassign_related_tickets ): void
853
+ public function setAllowsToReassignRelatedTickets (bool $ allows_to_reassign ): void
851
854
{
852
- $ this ->allows_reassign_related_tickets = $ allows_reassign_related_tickets ;
855
+ $ this ->allows_to_reassign = $ allows_to_reassign ;
853
856
}
854
857
}
0 commit comments