Fix some regresions

This commit is contained in:
Matias De lellis
2021-09-20 21:26:25 -03:00
parent 2d0d3fc975
commit eaa68be517
5 changed files with 6 additions and 4 deletions

View File

@@ -7,7 +7,7 @@ use OCP\AppFramework\Db\Entity;
/**
* @method void setColor(string $color)
* @method strinf getColor()
* @method string getColor()
*/
class Color extends Entity implements JsonSerializable {

View File

@@ -30,7 +30,7 @@ class ColorMapper extends QBMapper {
$qb->select('*')
->from($this->tableName)
->where(
$qb->expr()->eq('color', $qb->createNamedParameter($color, IQueryBuilder::PARAM_STRING))
$qb->expr()->eq('color', $qb->createNamedParameter($color, IQueryBuilder::PARAM_STR))
);
return $this->findEntity($qb);
}