Breaking: Removed methods from \FGTCLB\AcademicProjects\Domain\Model\Dto\ProjectDemand
Description
Following class methods has been removed:
ProfileDemand:: get Hide Completed Projects () ProfileDemand:: set Hide Completed Projects ()
Impact
Using above mentioned removed Profile methods to call related
methods in the Profile directly leads to FATAL PHP ERROR.
Affected installations
TYPO3 instances using removed Profile methods.
Migration
The removed method should be replaced using the new methods:
ProfileDemand:: set Active State (string $active State): void ProfileDemand:: get Active State (): string
instead, working slightly different now.
\FGTCLB\ ENUM provided
possible values for the active state but cannot be passed directly.
before
$demand = new ProfileDemand();
$demand->setHideCompletedProjects(true);
$demand->setHideCompletedProjects(false);
Copied!
$demand = new ProfileDemand();
// setHideCompletedProjects(true)
$demand->setActiveState(ActiveState::ACTIVE);
// setHideCompletedProjects(false)
$demand->setActiveState(ActiveState::ALL);
Copied!
Tip
The new Active enum provides the additional
Active state, which can be used to
filter only completed projects.