Closed PeterBocan closed 9 years ago
Probably not, but I have never used it, it will be also highly connected to nextras/dbal.
Implemented support for both ORM and DBAL. The basic possible impl.:
/**
* @param string $contents
*/
class File extends Nextras\Orm\Entity\Entity
{
}
class FilesMapper extends DbalMapper
{
protected function createStorageReflection()
{
$reflection = parent::createStorageReflection();
$reflection->addMapping('contents', 'contents', NULL, function($val, & $key) {
$key .= '%blob';
return $val;
});
return $reflection;
}
}
This functionality will be available in ORM v1.1 and DBAL v1.1, currently both devs versions.
after update to orm 1.1 clear memcache, otherwise you will get an error - Fatal error: Call to undefined function d() in nextras\orm\src\Mapper\Dbal\StorageReflection\StorageReflection.php
Is there any kind of support for blobs?