Closed mihob closed 1 week ago
Thanks for the extra updates, I was struggling to reproduce that, but glad to get to the core issue of the owner not set correctly, as that's critically important! Looks like that's due to using the NestedElementTrait.
Fixed in 3.0.1
Glad to help, thanks for the quick fix!
@engram-design Its still not working:
$session->startDate = $event['startDate'];
$session->endDate = $event['endDate'];
The properties must be DateTime or null, $event['startDate'] and $event['endDate'] are strings.
If you use setAttributes as before for these properties it works.
My mistake, you're right about that. Fixed for the next release. To get this early, run composer require verbb/events:"dev-craft-5 as 3.0.2"
.
Describe the bug
It is not possible to upgrade to craft 5 because the database migrations of the events plugin fail.
The following error occurs:
As far as I remember, it worked with the last beta release of the plugin.
UPDATE:
I have also tested it with the
dev-craft5
, because there is a change in the corresponding place. But the migration still fails, this time with the following error:UPDATE 2:
It looks like
primaryOwnerId
cannot be set viasetAttributes
:If I use the function setPrimaryOwnerId(...) as follows, the owner event is set correctly:
$session->setPrimaryOwnerId($event['id']);
The same problem exists at the following point and can be solved analogously:
$ticketType->setPrimaryOwnerId($legacyTicket['eventId']);
If I adjust both places, the migration runs through without any problems.
Steps to reproduce
Craft CMS version
5.4.10.1
Plugin version
3.0.0
Multi-site?
Yes
Additional context
No response