mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-16 22:43:19 +00:00
s/metadatatag/key
This commit is contained in:
@@ -24,7 +24,7 @@ class EqualExpression extends Node
|
|||||||
public function buildQuery(QueryContext $context)
|
public function buildQuery(QueryContext $context)
|
||||||
{
|
{
|
||||||
if (!$this->key->isValueCompatible($this->value, $context)) {
|
if (!$this->key->isValueCompatible($this->value, $context)) {
|
||||||
throw new QueryException(sprintf('Value "%s" for metadata tag "%s" is not valid.', $this->value, $this->key));
|
throw new QueryException(sprintf('Value "%s" for key "%s" is not valid.', $this->value, $this->key));
|
||||||
}
|
}
|
||||||
|
|
||||||
$query = [
|
$query = [
|
||||||
|
@@ -22,7 +22,7 @@ class MatchExpression extends Node
|
|||||||
public function buildQuery(QueryContext $context)
|
public function buildQuery(QueryContext $context)
|
||||||
{
|
{
|
||||||
if (!$this->key->isValueCompatible($this->value, $context)) {
|
if (!$this->key->isValueCompatible($this->value, $context)) {
|
||||||
throw new QueryException(sprintf('Value "%s" for metadata tag "%s" is not valid.', $this->value, $this->key));
|
throw new QueryException(sprintf('Value "%s" for key "%s" is not valid.', $this->value, $this->key));
|
||||||
}
|
}
|
||||||
|
|
||||||
return [
|
return [
|
||||||
|
@@ -84,7 +84,7 @@ class RangeExpression extends Node
|
|||||||
private function assertValueCompatible($value, QueryContext $context)
|
private function assertValueCompatible($value, QueryContext $context)
|
||||||
{
|
{
|
||||||
if (!$this->key->isValueCompatible($value, $context)) {
|
if (!$this->key->isValueCompatible($value, $context)) {
|
||||||
throw new QueryException(sprintf('Value "%s" for metadata tag "%s" is not valid.', $value, $this->key));
|
throw new QueryException(sprintf('Value "%s" for key "%s" is not valid.', $value, $this->key));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user