diff options
author | Marcos Zuriaga <wolfi@wolfi.es> | 2016-10-15 18:53:22 +0300 |
---|---|---|
committer | Marcos Zuriaga <wolfi@wolfi.es> | 2016-10-15 18:53:22 +0300 |
commit | 95509e3558ce508c8810f4561d8cc35c0d8b1a1f (patch) | |
tree | e1938ce963a105b0e2c548e27cb32305c7c419fa /lib | |
parent | 114df3e948c45efc668b354289ff7697b0389a8a (diff) |
Added file mapper test
Updated database test mock data and added missing tables
Changed some wrong phpdoc
Added some phpdoc
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Db/File.php | 2 | ||||
-rw-r--r-- | lib/Db/FileMapper.php | 5 |
2 files changed, 6 insertions, 1 deletions
diff --git a/lib/Db/File.php b/lib/Db/File.php index 5952d5f3..de3dd085 100644 --- a/lib/Db/File.php +++ b/lib/Db/File.php @@ -18,7 +18,7 @@ use \OCP\AppFramework\Db\Entity; * @method void setGuid(string $value) * @method string getGuid() * @method void setUserId(string $value) - * @method string getUserid() + * @method string getUserId() * @method void setMimetype(string $value) * @method string getMimetype() * @method void setFilename(string $value) diff --git a/lib/Db/FileMapper.php b/lib/Db/FileMapper.php index 1a72ca37..93d47689 100644 --- a/lib/Db/FileMapper.php +++ b/lib/Db/FileMapper.php @@ -58,6 +58,11 @@ class FileMapper extends Mapper { return $this->findEntity($sql, $params); } + /** + * @param $file_raw + * @param $userId + * @return File + */ public function create($file_raw, $userId) { $file = new File(); $file->setGuid($this->utils->GUID()); |