migration changed, further attempts to fix bug

This commit is contained in:
2021-10-25 17:03:45 +02:00
parent f4b9942f3c
commit 18ca01b0dc
4 changed files with 20 additions and 11 deletions

View File

@@ -10,6 +10,7 @@ use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\Validator\Validator\ValidatorInterface;
use Symfony\Component\Routing\Annotation\Route;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\ParamConverter;
use Symfony\Component\HttpFoundation\Request;
class RelationshipApiController extends ApiController
{
@@ -22,6 +23,12 @@ class RelationshipApiController extends ApiController
$this->repository = $repository;
}
public function createEntity(string $action, Request $request): object
{
$relationship = parent::createEntity($action, $request);
return $relationship;
}
/**
* @Route("/api/1.0/relation/relationship/by-person/{person_id}.json",
* name="chill_relation_relationship_by_person")