Removed constraints on the "source" parameter

This commit is contained in:
Franck Allimant
2014-06-27 19:50:20 +02:00
parent d969f84ae0
commit 5701d76c1e
2 changed files with 6 additions and 14 deletions

View File

@@ -39,7 +39,7 @@ class Document extends BaseI18nLoop implements PropelSearchLoopInterface
protected $timestampable = true;
/**
* @var array Possible document sources
* @var array Possible standard document sources
*/
protected $possible_sources = array('category', 'product', 'folder', 'content', 'brand');
@@ -66,12 +66,8 @@ class Document extends BaseI18nLoop implements PropelSearchLoopInterface
Argument::createIntTypeArgument('folder'),
Argument::createIntTypeArgument('content'),
new Argument(
'source',
new TypeCollection(
new EnumType($this->possible_sources)
)
),
Argument::createAnyTypeArgument('source'),
Argument::createIntTypeArgument('source_id'),
Argument::createBooleanTypeArgument('force_return', true)
);

View File

@@ -39,7 +39,7 @@ class Image extends BaseI18nLoop implements PropelSearchLoopInterface
protected $timestampable = true;
/**
* @var array Possible image sources
* @var array Possible standard image sources
*/
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('content'),
new Argument(
'source',
new TypeCollection(
new EnumType($this->possible_sources)
)
),
Argument::createAnyTypeArgument('source'),
Argument::createIntTypeArgument('source_id'),
Argument::createBooleanTypeArgument('force_return', true)
);