DbRepository: Relax check in providesValueConversion()

Would otherwise conflict when tables are joined in.

refs #8826
This commit is contained in:
Johannes Meyer 2015-05-29 11:58:21 +02:00
parent cc779024fe
commit c8e8a39f5a
1 changed files with 7 additions and 3 deletions

View File

@ -402,15 +402,19 @@ abstract class DbRepository extends Repository implements Extensible, Updatable,
}
/**
* Return whether this repository is capable of converting values for the given table
* Return whether this repository is capable of converting values
*
* This does not check whether any conversion for the given table is available, as it may be possible
* that columns from another table where joined in which would otherwise not being converted.
*
* @param array|string $table
*
* @return bool
*/
public function providesValueConversion($table)
public function providesValueConversion($_)
{
return parent::providesValueConversion($this->removeTablePrefix($this->clearTableAlias($table)));
$conversionRules = $this->getConversionRules();
return !empty($conversionRules);
}
/**