Skip to content
This repository has been archived by the owner on Aug 16, 2024. It is now read-only.

Commit

Permalink
feat: update command handler to save new checkbox on App Overview page (
Browse files Browse the repository at this point in the history
#182)

* feat: Abstract entity changes to support new Application db field.

* feat: Abstract entity changes to support new Application db field.

* chore: bump `olcs-transfer` to `v7.2.0`

---------

Co-authored-by: JoshuaLicense <JoshuaLicense@users.noreply.github.com>
  • Loading branch information
fibble and JoshuaLicense authored Jun 18, 2024
1 parent 952360c commit 12d66b6
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 6 deletions.
12 changes: 6 additions & 6 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions module/Api/src/Domain/CommandHandler/Application/Overview.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ public function handleCommand(CommandInterface $command)

$application->setOverrideOoo($command->getOverrideOppositionDate());

$application->setApplicationReferredToPi($command->getApplicationReferredToPi());

$this->getRepo()->save($application);

$result
Expand Down
33 changes: 33 additions & 0 deletions module/Api/src/Entity/Application/AbstractApplication.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,15 @@ abstract class AbstractApplication implements BundleSerializableInterface, JsonS
*/
protected $administration;

/**
* Application Referred to PI
*
* @var string
*
* @ORM\Column(type="yesnonull", name="application_referred_to_pi", nullable=true)
*/
protected $applicationReferredToPi;

/**
* Applied via
*
Expand Down Expand Up @@ -982,6 +991,30 @@ public function setAdministration($administration)
return $this;
}

/**
* Get applicationReferredToPi
*
* @return string
*/
public function getApplicationReferredToPi()
{
return $this->applicationReferredToPi;
}

/**
* Set applicationReferredToPi
*
* @param string $applicationReferredToPi new value being set
*
* @return Application
*/
public function setApplicationReferredToPi($applicationReferredToPi)
{
$this->applicationReferredToPi = $applicationReferredToPi;

return $this;
}

/**
* Get the administration
*
Expand Down

0 comments on commit 12d66b6

Please sign in to comment.