fix problem with MySQL 'int'

This commit is contained in:
Taras Machyshyn
2014-08-15 13:18:44 +03:00
parent 0eaab6b7ee
commit 7a87749c4c
3 changed files with 391 additions and 382 deletions
+2 -1
View File
@@ -51,11 +51,12 @@ class Auth
$entityManager = $this->container->get('entityManager');
$user = $entityManager->getRepository('User')->get('system');
$user->set('isAdmin', $isAdmin);
if (!$user) {
throw new Error('System user is not found');
}
$user->set('isAdmin', $isAdmin);
$entityManager->setUser($user);
$this->container->setUser($user);
}
@@ -276,7 +276,8 @@ class Converter
case 'array':
case 'jsonArray':
case 'text':
$dbFieldParams['default'] = ''; //for db type TEXT can't be defined a default value
case 'longtext':
unset($dbFieldParams['default']); //for db type TEXT can't be defined a default value
break;
case 'bool':
File diff suppressed because it is too large Load Diff