diff --git a/Doctrine/Locking/Manager/Pessimistic.php b/Doctrine/Locking/Manager/Pessimistic.php index cd3191fbb..1d8e33a1b 100644 --- a/Doctrine/Locking/Manager/Pessimistic.php +++ b/Doctrine/Locking/Manager/Pessimistic.php @@ -1,4 +1,23 @@ . + */ /** * Class for handling the pessimistic offline locking of {@link Doctrine_Record}s. * Offline locking of records comes in handy where you need to make sure that @@ -37,10 +56,10 @@ class Doctrine_Locking_Manager_Pessimistic if($this->_dataSource->getAttribute(Doctrine::ATTR_CREATE_TABLES) === true) { $columns = array(); - $columns['object_type'] = array('string', 50, array('notnull','primary')); - $columns['object_key'] = array('string', 250, array('notnull','primary')); - $columns['user_ident'] = array('string', 50, array('notnull')); - $columns['timestamp_obtained'] = array('integer', 10, array('notnull')); + $columns['object_type'] = array('string', 50, array('notnull' => true, 'primary')); + $columns['object_key'] = array('string', 250, array('notnull' => true, 'primary')); + $columns['user_ident'] = array('string', 50, array('notnull' => true)); + $columns['timestamp_obtained'] = array('integer', 10, array('notnull' => true)); $dataDict = new Doctrine_DataDict($this->_dataSource->getDBH()); $dataDict->createTable($this->_lockTable, $columns);