1
0
mirror of synced 2024-12-13 22:56:04 +03:00

identifier constants added

This commit is contained in:
zYne 2007-02-10 12:38:34 +00:00
parent be5750aee8
commit b29a0340dd

View File

@ -336,6 +336,23 @@ final class Doctrine
* mode for pessimistic locking * mode for pessimistic locking
*/ */
const LOCK_PESSIMISTIC = 1; const LOCK_PESSIMISTIC = 1;
/**
* constant for auto_increment identifier
*/
const IDENTIFIER_AUTOINC = 1;
/**
* constant for sequence identifier
*/
const IDENTIFIER_SEQUENCE = 2;
/**
* constant for normal identifier
*/
const IDENTIFIER_NATURAL = 3;
/**
* constant for composite identifier
*/
const IDENTIFIER_COMPOSITE = 4;
/** /**
* constructor * constructor
*/ */
@ -379,10 +396,12 @@ final class Doctrine
* method for importing existing schema to Doctrine_Record classes * method for importing existing schema to Doctrine_Record classes
* *
* @param string $directory * @param string $directory
* @param array $info
* @return boolean
*/ */
public static function import($directory) public static function import($directory, array $databases = array())
{ {
Doctrine_Import::import(); return Doctrine_Manager::connection()->import->import($directory, $databases);
} }
/** /**
* export * export