@@ -123,11 +123,12 @@ class SummitRegistrationPromoCode extends SilverstripeBaseModel
123123 */
124124 protected $ allows_to_delegate ;
125125
126+ protected $ allows_reassign_related_tickets ;
126127 /**
127128 * @ORM\Column(name="AllowsReassignRelatedTickets", type="boolean")
128129 * @var bool
129130 */
130- protected $ allows_reassign_related_tickets ;
131+ protected $ allows_to_reassign ;
131132
132133 /**
133134 * @ORM\ManyToOne(targetEntity="models\summit\Summit", inversedBy="promo_codes")
@@ -302,7 +303,7 @@ public function __construct()
302303 $ this ->valid_since_date = null ;
303304 $ this ->valid_until_date = null ;
304305 $ this ->allows_to_delegate = false ;
305- $ this ->allows_reassign_related_tickets = true ;
306+ $ this ->allows_to_reassign = true ;
306307 $ this ->sent_date = null ;
307308 $ this ->badge_features = new ArrayCollection ();
308309 $ this ->allowed_ticket_types = new ArrayCollection ();
@@ -544,6 +545,8 @@ public function getClassName()
544545 'summit_id ' => 'integer ' ,
545546 'creator_id ' => 'integer ' ,
546547 'allowed_ticket_types ' => 'array ' ,
548+ 'allows_to_delegate ' => 'boolean ' ,
549+ 'allows_to_reassign ' => 'boolean ' ,
547550 ];
548551
549552 /**
@@ -835,7 +838,7 @@ public function getMaxUsagePerOrder():int{
835838 */
836839 public function isAllowsToReassignRelatedTickets (): bool
837840 {
838- $ res = $ this ->allows_reassign_related_tickets ;
841+ $ res = $ this ->allows_to_reassign ;
839842 if (is_null ($ res )){
840843 Log::warning (sprintf ("SummitRegistrationPromoCode::isAllowsToReassignRelatedTickets promo code %s allows_reassign_related_tickets is null " , $ this ->id ));
841844 $ res = true ;
@@ -847,8 +850,8 @@ public function isAllowsToReassignRelatedTickets(): bool
847850 * @param bool $allows_to_delegate
848851 * @return void
849852 */
850- public function setAllowsToReassignRelatedTickets (bool $ allows_reassign_related_tickets ): void
853+ public function setAllowsToReassignRelatedTickets (bool $ allows_to_reassign ): void
851854 {
852- $ this ->allows_reassign_related_tickets = $ allows_reassign_related_tickets ;
855+ $ this ->allows_to_reassign = $ allows_to_reassign ;
853856 }
854857}
0 commit comments