Skip to content
Open
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions app/config/filters.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,8 @@ services:
parent: 'api_platform.doctrine.orm.search_filter'
arguments: [ { video: 'exact' } ]
tags: [ { name: 'api_platform.filter', id: 'view.search' } ]

metadata.search_filter:
parent: 'api_platform.doctrine.orm.search_filter'
arguments: [ { location: 'exact' } ]
tags: [ { name: 'api_platform.filter', id: 'metadata.search' } ]
20 changes: 20 additions & 0 deletions src/AppBundle/Entity/Metadata.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,26 @@ class Metadata
*/
private $format;

/**
* @var string
*
* @ORM\Column(name="location", type="string")
* @Assert\NotBlank
* @Groups({"video"})
* @Assert\Type("string")
*/
private $location;

public function getLocation(): string
{
return $this->location;
}

public function setLocation(string $location)
{
$this->location = $location;
}

public function getId(): int
{
return $this->id;
Expand Down