Skip to content

Commit

Permalink
Add missing getEntityId method to EntityDto
Browse files Browse the repository at this point in the history
The getEntityId seems missing and is now added to succesfully delete
child entities from a service.
  • Loading branch information
pablothedude committed Dec 3, 2018
1 parent 2359dae commit 4c54875
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
use Surfnet\ServiceProviderDashboard\Application\Command\Entity\DeleteCommandFactory;
use Surfnet\ServiceProviderDashboard\Application\Command\Service\DeleteServiceCommand;
use Surfnet\ServiceProviderDashboard\Application\CommandHandler\CommandHandler;
use Surfnet\ServiceProviderDashboard\Application\Dto\EntityDto;
use Surfnet\ServiceProviderDashboard\Application\Service\EntityServiceInterface;
use Surfnet\ServiceProviderDashboard\Domain\Entity\Contact;
use Surfnet\ServiceProviderDashboard\Domain\Repository\ServiceRepository;
Expand Down Expand Up @@ -95,6 +96,8 @@ public function handle(DeleteServiceCommand $command)
/**
* Using the deleteCommandFactory, entity delete commands are created
* that will remove them from the appropriate environment.
* @param EntityDto[] $entities
* @param Contact $contact
*/
private function removeEntitiesFrom(array $entities, Contact $contact)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,14 @@ public function getId()
return $this->id;
}

/**
* @return string
*/
public function getEntityId()
{
return $this->id;
}

/**
* @return string
*/
Expand Down

0 comments on commit 4c54875

Please sign in to comment.