@@ 510-510 (lines=1) @@ | ||
507 | }) |
|
508 | ->end() |
|
509 | ->validate() |
|
510 | ->ifTrue(function ($v) { return isset($v['driver']) && 'propel' === $v['driver'] && isset($v['listener']); }) |
|
511 | ->thenInvalid('Propel doesn\'t support listeners') |
|
512 | ->ifTrue(function ($v) { return isset($v['driver']) && 'propel' === $v['driver'] && isset($v['repository']); }) |
|
513 | ->thenInvalid('Propel doesn\'t support the "repository" parameter') |
|
@@ 512-512 (lines=1) @@ | ||
509 | ->validate() |
|
510 | ->ifTrue(function ($v) { return isset($v['driver']) && 'propel' === $v['driver'] && isset($v['listener']); }) |
|
511 | ->thenInvalid('Propel doesn\'t support listeners') |
|
512 | ->ifTrue(function ($v) { return isset($v['driver']) && 'propel' === $v['driver'] && isset($v['repository']); }) |
|
513 | ->thenInvalid('Propel doesn\'t support the "repository" parameter') |
|
514 | ->ifTrue(function($v) { return isset($v['driver']) && 'orm' !== $v['driver'] && !empty($v['elastica_to_model_transformer']['hints']); }) |
|
515 | ->thenInvalid('Hints are only supported by the "orm" driver') |