Removed constraints on the "source" parameter
This commit is contained in:
@@ -39,7 +39,7 @@ class Document extends BaseI18nLoop implements PropelSearchLoopInterface
|
|||||||
protected $timestampable = true;
|
protected $timestampable = true;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @var array Possible document sources
|
* @var array Possible standard document sources
|
||||||
*/
|
*/
|
||||||
protected $possible_sources = array('category', 'product', 'folder', 'content', 'brand');
|
protected $possible_sources = array('category', 'product', 'folder', 'content', 'brand');
|
||||||
|
|
||||||
@@ -66,12 +66,8 @@ class Document extends BaseI18nLoop implements PropelSearchLoopInterface
|
|||||||
Argument::createIntTypeArgument('folder'),
|
Argument::createIntTypeArgument('folder'),
|
||||||
Argument::createIntTypeArgument('content'),
|
Argument::createIntTypeArgument('content'),
|
||||||
|
|
||||||
new Argument(
|
Argument::createAnyTypeArgument('source'),
|
||||||
'source',
|
|
||||||
new TypeCollection(
|
|
||||||
new EnumType($this->possible_sources)
|
|
||||||
)
|
|
||||||
),
|
|
||||||
Argument::createIntTypeArgument('source_id'),
|
Argument::createIntTypeArgument('source_id'),
|
||||||
Argument::createBooleanTypeArgument('force_return', true)
|
Argument::createBooleanTypeArgument('force_return', true)
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -39,7 +39,7 @@ class Image extends BaseI18nLoop implements PropelSearchLoopInterface
|
|||||||
protected $timestampable = true;
|
protected $timestampable = true;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @var array Possible image sources
|
* @var array Possible standard image sources
|
||||||
*/
|
*/
|
||||||
protected $possible_sources = array('category', 'product', 'folder', 'content', 'module', 'brand');
|
protected $possible_sources = array('category', 'product', 'folder', 'content', 'module', 'brand');
|
||||||
|
|
||||||
@@ -80,12 +80,8 @@ class Image extends BaseI18nLoop implements PropelSearchLoopInterface
|
|||||||
Argument::createIntTypeArgument('folder'),
|
Argument::createIntTypeArgument('folder'),
|
||||||
Argument::createIntTypeArgument('content'),
|
Argument::createIntTypeArgument('content'),
|
||||||
|
|
||||||
new Argument(
|
Argument::createAnyTypeArgument('source'),
|
||||||
'source',
|
|
||||||
new TypeCollection(
|
|
||||||
new EnumType($this->possible_sources)
|
|
||||||
)
|
|
||||||
),
|
|
||||||
Argument::createIntTypeArgument('source_id'),
|
Argument::createIntTypeArgument('source_id'),
|
||||||
Argument::createBooleanTypeArgument('force_return', true)
|
Argument::createBooleanTypeArgument('force_return', true)
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user