Doctrine 1.2.4
Doctrine Class Reference

Inherits Doctrine_Core.

Static Public Member Functions

static autoload ($className)
 
static compile ($target=null, $includedDrivers=array())
 
static createDatabases ($specifiedConnections=array())
 
static createTablesFromArray ($array)
 
static createTablesFromModels ($directory=null)
 
static debug ($bool=null)
 
static dropDatabases ($specifiedConnections=array())
 
static dump ($var, $output=true, $indent="")
 
static dumpData ($yamlPath, $individualFiles=false)
 
static extensionsAutoload ($className)
 
static filterInvalidModels ($classes)
 
static generateMigrationClass ($className, $migrationsPath)
 
static generateMigrationsFromDb ($migrationsPath)
 
static generateMigrationsFromDiff ($migrationsPath, $from, $to)
 
static generateMigrationsFromModels ($migrationsPath, $modelsPath=null, $modelLoading=null)
 
static generateModelsFromDb ($directory, array $connections=array(), array $options=array())
 
static generateModelsFromYaml ($yamlPath, $directory, $options=array())
 
static generateSqlFromArray ($array)
 
static generateSqlFromModels ($directory=null)
 
static generateYamlFromDb ($yamlPath, array $connections=array(), array $options=array())
 
static generateYamlFromModels ($yamlPath, $directory)
 
static getConnectionByTableName ($tableName)
 
static getExtensionsPath ()
 
static getLoadedModelFiles ()
 
static getLoadedModels ($classes=null)
 
static getModelsDirectory ()
 
static getPath ()
 
static getTable ($componentName)
 
static initializeModels ($models)
 
static isValidModelClass ($class)
 
static loadData ($yamlPath, $append=false)
 
static loadModel ($className, $path=null)
 
static loadModels ($directory, $modelLoading=null, $classPrefix=null)
 
static migrate ($migrationsPath, $to=null)
 
static setExtensionsPath ($extensionsPath)
 
static setModelsDirectory ($directory)
 
static setPath ($path)
 

Data Fields

const ATTR_AUTOCOMMIT = 0
 
const ATTR_LISTENER = 100
 
const CASE_LOWER = 2
 
const ERR = -1
 
const EXPORT_ALL = 7
 
const EXPORT_CONSTRAINTS = 2
 
const EXPORT_NONE = 0
 
const EXPORT_PLUGINS = 4
 
const EXPORT_TABLES = 1
 
const HYDRATE_ARRAY = 3
 
const HYDRATE_ARRAY_HIERARCHY = 8
 
const HYDRATE_NONE = 4
 
const HYDRATE_ON_DEMAND = 7
 
const HYDRATE_RECORD = 2
 
const HYDRATE_RECORD_HIERARCHY = 9
 
const HYDRATE_SCALAR = 5
 
const HYDRATE_SINGLE_SCALAR = 6
 
const IDENTIFIER_AUTOINC = 1
 
const IDENTIFIER_COMPOSITE = 4
 
const IDENTIFIER_NATURAL = 3
 
const IDENTIFIER_SEQUENCE = 2
 
const LIMIT_RECORDS = 2
 
const LIMIT_ROWS = 1
 
const LOCK_OPTIMISTIC = 0
 
const LOCK_PESSIMISTIC = 1
 
const MODEL_LOADING_AGGRESSIVE = 1
 
const MODEL_LOADING_CONSERVATIVE = 2
 
const MODEL_LOADING_PEAR = 3
 
const PORTABILITY_ALL = 63
 
const PORTABILITY_DELETE_COUNT = 4
 
const PORTABILITY_EMPTY_TO_NULL = 8
 
const PORTABILITY_EXPR = 32
 
const PORTABILITY_FIX_ASSOC_FIELD_NAMES = 16
 
const PORTABILITY_FIX_CASE = 1
 
const PORTABILITY_NONE = 0
 
const PORTABILITY_RTRIM = 2
 
const VALIDATE_ALL = 7
 
const VALIDATE_CONSTRAINTS = 4
 
const VALIDATE_LENGTHS = 1
 
const VALIDATE_NONE = 0
 
const VALIDATE_TYPES = 2
 
const VALIDATE_USER = 8
 
const VERSION = '1.2.4'
 

Detailed Description

Definition at line 36 of file Doctrine.php.

Member Function Documentation

static Doctrine_Core::autoload (   $className)
staticinherited

simple autoload function returns true if the class was loaded, otherwise false

Parameters
string$className
Returns
boolean

Definition at line 1110 of file Core.php.

{
if (strpos($className, 'sfYaml') === 0) {
require dirname(__FILE__) . '/Parser/sfYaml/' . $className . '.php';
return true;
}
if (0 !== stripos($className, 'Doctrine') || class_exists($className, false) || interface_exists($className, false)) {
return false;
}
$class = self::getPath() . DIRECTORY_SEPARATOR . str_replace('_', DIRECTORY_SEPARATOR, $className) . '.php';
if (file_exists($class)) {
require $class;
return true;
}
return false;
}
static Doctrine_Core::compile (   $target = null,
  $includedDrivers = array() 
)
staticinherited

Method for making a single file of most used doctrine runtime components including the compiled file instead of multiple files (in worst cases dozens of files) can improve performance by an order of magnitude

Parameters
string$target
array$includedDrivers
Exceptions
Doctrine_Exception
Returns
void

Definition at line 1098 of file Core.php.

{
return Doctrine_Compiler::compile($target, $includedDrivers);
}
static Doctrine_Core::createDatabases (   $specifiedConnections = array())
staticinherited

Creates databases for connections

Parameters
string$specifiedConnectionsArray of connections you wish to create the database for
Returns
void

Definition at line 959 of file Core.php.

{
return Doctrine_Manager::getInstance()->createDatabases($specifiedConnections);
}
static Doctrine_Core::createTablesFromArray (   $array)
staticinherited

Creates database tables for the models in the supplied array

Parameters
array$arrayAn array of models to be exported
Returns
void

Definition at line 903 of file Core.php.

{
return Doctrine_Manager::connection()->export->exportClasses($array);
}
static Doctrine_Core::createTablesFromModels (   $directory = null)
staticinherited

Creates database tables for the models in the specified directory

Parameters
string$directoryDirectory containing your models
Returns
void

Definition at line 892 of file Core.php.

{
return Doctrine_Manager::connection()->export->exportSchema($directory);
}
static Doctrine_Core::debug (   $bool = null)
staticinherited

Turn on/off the debugging setting

Parameters
string$bool
Returns
void

Definition at line 529 of file Core.php.

{
if ($bool !== null) {
self::$_debug = (bool) $bool;
}
return self::$_debug;
}
static Doctrine_Core::dropDatabases (   $specifiedConnections = array())
staticinherited

Drops databases for connections

Parameters
string$specifiedConnectionsArray of connections you wish to drop the database for
Returns
void

Definition at line 970 of file Core.php.

{
return Doctrine_Manager::getInstance()->dropDatabases($specifiedConnections);
}
static Doctrine_Core::dump (   $var,
  $output = true,
  $indent = "" 
)
staticinherited

dumps a given variable

Parameters
mixed$vara variable of any type
boolean$outputwhether to output the content
string$indentindention string
Returns
void|string

Definition at line 1196 of file Core.php.

{
$ret = array();
switch (gettype($var)) {
case 'array':
$ret[] = 'Array(';
$indent .= " ";
foreach ($var as $k => $v) {
$ret[] = $indent . $k . ' : ' . self::dump($v, false, $indent);
}
$indent = substr($indent,0, -4);
$ret[] = $indent . ")";
break;
case 'object':
$ret[] = 'Object(' . get_class($var) . ')';
break;
default:
$ret[] = var_export($var, true);
}
if ($output) {
print implode("\n", $ret);
}
return implode("\n", $ret);
}
static Doctrine_Core::dumpData (   $yamlPath,
  $individualFiles = false 
)
staticinherited

Dump data to a yaml fixtures file

Parameters
string$yamlPathPath to write the yaml data fixtures to
string$individualFilesWhether or not to dump data to individual fixtures files
Returns
void

Definition at line 982 of file Core.php.

{
$data = new Doctrine_Data();
return $data->exportData($yamlPath, 'yml', array(), $individualFiles);
}
static Doctrine_Core::extensionsAutoload (   $className)
staticinherited

Load classes from the Doctrine extensions directory/path

Parameters
string$className
Returns
boolean

Definition at line 1166 of file Core.php.

{
if (class_exists($className, false) || interface_exists($className, false)) {
return false;
}
->getExtensions();
foreach ($extensions as $name => $path) {
$class = $path . DIRECTORY_SEPARATOR . str_replace('_', DIRECTORY_SEPARATOR, $className) . '.php';
if (file_exists($class)) {
require $class;
return true;
}
}
return false;
}
static Doctrine_Core::filterInvalidModels (   $classes)
staticinherited

Filter through an array of classes and return all the classes that are valid models. This will inflect the class, causing it to be loaded in to memory.

Parameters
classesArray of classes to filter through, otherwise uses get_declared_classes()
Returns
array $loadedModels

Definition at line 762 of file Core.php.

{
$validModels = array();
foreach ((array) $classes as $name) {
if (self::isValidModelClass($name) && ! in_array($name, $validModels)) {
$validModels[] = $name;
}
}
return $validModels;
}
static Doctrine_Core::generateMigrationClass (   $className,
  $migrationsPath 
)
staticinherited

Generate new migration class skeleton

Parameters
string$classNameName of the Migration class to generate
string$migrationsPathPath to directory which contains your migration classes

Definition at line 1025 of file Core.php.

{
$builder = new Doctrine_Migration_Builder($migrationsPath);
return $builder->generateMigrationClass($className);
}
static Doctrine_Core::generateMigrationsFromDb (   $migrationsPath)
staticinherited

Generate a set of migration classes from an existing database

Parameters
string$migrationsPath
Returns
void
Exceptions
newDoctrine_Migration_Exception

Definition at line 1039 of file Core.php.

{
$builder = new Doctrine_Migration_Builder($migrationsPath);
return $builder->generateMigrationsFromDb();
}
static Doctrine_Core::generateMigrationsFromDiff (   $migrationsPath,
  $from,
  $to 
)
staticinherited

Generate a set of migration classes by generating differences between two sets of schema information

Parameters
string$migrationsPathPath to your Doctrine migration classes
string$fromFrom schema information
string$toTo schema information
Returns
array $changes

Definition at line 1070 of file Core.php.

{
$diff = new Doctrine_Migration_Diff($from, $to, $migrationsPath);
return $diff->generateMigrationClasses();
}
static Doctrine_Core::generateMigrationsFromModels (   $migrationsPath,
  $modelsPath = null,
  $modelLoading = null 
)
staticinherited

Generate a set of migration classes from an existing set of models

Parameters
string$migrationsPathPath to your Doctrine migration classes
string$modelsPathPath to your Doctrine model classes
integer$modelLoadingStyle of model loading to use for loading the models in order to generate migrations
Returns
void

Definition at line 1054 of file Core.php.

{
$builder = new Doctrine_Migration_Builder($migrationsPath);
return $builder->generateMigrationsFromModels($modelsPath, $modelLoading);
}
static Doctrine_Core::generateModelsFromDb (   $directory,
array  $connections = array(),
array  $options = array() 
)
staticinherited

Method for importing existing schema to Doctrine_Record classes

Parameters
string$directoryDirectory to write your models to
array$connectionsArray of connection names to generate models for
array$optionsArray of options
Returns
boolean
Exceptions
Exception

Definition at line 836 of file Core.php.

{
return Doctrine_Manager::connection()->import->importSchema($directory, $connections, $options);
}
static Doctrine_Core::generateModelsFromYaml (   $yamlPath,
  $directory,
  $options = array() 
)
staticinherited

Generate a yaml schema file from an existing directory of models

Parameters
string$yamlPathPath to your yaml schema files
string$directoryDirectory to generate your models in
array$optionsArray of options to pass to the schema importer
Returns
void

Definition at line 878 of file Core.php.

{
$import = new Doctrine_Import_Schema();
$import->setOptions($options);
return $import->importSchema($yamlPath, 'yml', $directory);
}
static Doctrine_Core::generateSqlFromArray (   $array)
staticinherited

Generate a array of sql for the passed array of models

Parameters
array$array
Returns
array $sql

Definition at line 914 of file Core.php.

{
return Doctrine_Manager::connection()->export->exportClassesSql($array);
}
static Doctrine_Core::generateSqlFromModels (   $directory = null)
staticinherited

Generate a sql string to create the tables from all loaded models or the models found in the passed directory.

Parameters
string$directory
Returns
string $build String of sql queries. One query per line

Definition at line 926 of file Core.php.

{
$sql = $conn->export->exportSql($directory);
$build = '';
foreach ($sql as $query) {
$build .= $query.$conn->sql_file_delimiter;
}
return $build;
}
static Doctrine_Core::generateYamlFromDb (   $yamlPath,
array  $connections = array(),
array  $options = array() 
)
staticinherited

Generates models from database to temporary location then uses those models to generate a yaml schema file. This should probably be fixed. We should write something to generate a yaml schema file directly from the database.

Parameters
string$yamlPathPath to write oyur yaml schema file to
array$connectionsArray of connection names to generate yaml for
array$optionsArray of options
Returns
void

Definition at line 850 of file Core.php.

{
$directory = sys_get_temp_dir() . DIRECTORY_SEPARATOR . 'tmp_doctrine_models';
$options['generateBaseClasses'] = isset($options['generateBaseClasses']) ? $options['generateBaseClasses']:false;
$result = Doctrine_Core::generateModelsFromDb($directory, $connections, $options);
if ( empty($result) && ! is_dir($directory)) {
throw new Doctrine_Exception('No models generated from your databases');
}
$export = new Doctrine_Export_Schema();
$result = $export->exportSchema($yamlPath, 'yml', $directory, array(), Doctrine_Core::MODEL_LOADING_AGGRESSIVE);
return $result;
}
static Doctrine_Core::generateYamlFromModels (   $yamlPath,
  $directory 
)
staticinherited

Generate yaml schema file for the models in the specified directory

Parameters
string$yamlPathPath to your yaml schema files
string$directoryDirectory to generate your models in
Returns
void

Definition at line 946 of file Core.php.

{
$export = new Doctrine_Export_Schema();
return $export->exportSchema($yamlPath, 'yml', $directory);
}
static Doctrine_Core::getConnectionByTableName (   $tableName)
staticinherited

Get the connection object for a table by the actual table name FIXME: I think this method is flawed because a individual connections could have the same table name

Parameters
string$tableName
Returns
Doctrine_Connection

Definition at line 812 of file Core.php.

{
$loadedModels = self::getLoadedModels();
foreach ($loadedModels as $name) {
$table = Doctrine_Core::getTable($name);
if ($table->getTableName() == $tableName) {
return $table->getConnection();
}
}
}
static Doctrine_Core::getExtensionsPath ( )
staticinherited

Get the path to load extension classes from

Returns
string $extensionsPath

Definition at line 579 of file Core.php.

{
return self::$_extensionsPath;
}
static Doctrine_Core::getLoadedModelFiles ( )
staticinherited

Returns an array of all the loaded models and the path where each of them exists

Returns
array

Definition at line 518 of file Core.php.

{
return self::$_loadedModelFiles;
}
static Doctrine_Core::getLoadedModels (   $classes = null)
staticinherited

Get all the loaded models, you can provide an array of classes or it will use get_declared_classes()

Will filter through an array of classes and return the Doctrine_Records out of them. If you do not specify $classes it will return all of the currently loaded Doctrine_Records

Parameters
classesArray of classes to filter through, otherwise uses get_declared_classes()
Returns
array $loadedModels

Definition at line 713 of file Core.php.

{
if ($classes === null) {
$classes = get_declared_classes();
$classes = array_merge($classes, array_keys(self::$_loadedModelFiles));
}
return self::filterInvalidModels($classes);
}
static Doctrine_Core::getModelsDirectory ( )
staticinherited

Get the directory where your models are located for PEAR style naming convention autoloading

Returns
void
Author
Jonathan Wage

Definition at line 613 of file Core.php.

{
return self::$_modelsDirectory;
}
static Doctrine_Core::getPath ( )
staticinherited

Get the root path to Doctrine

Returns
string

Definition at line 554 of file Core.php.

{
if ( ! self::$_path) {
self::$_path = realpath(dirname(__FILE__) . '/..');
}
return self::$_path;
}
static Doctrine_Core::getTable (   $componentName)
staticinherited

Get the Doctrine_Table object for the passed model

Parameters
string$componentName
Returns
Doctrine_Table

Definition at line 1083 of file Core.php.

{
return Doctrine_Manager::getInstance()->getConnectionForComponent($componentName)->getTable($componentName);
}
static Doctrine_Core::initializeModels (   $models)
staticinherited

Initialize all models so everything is present and loaded in to memory This will also inheritently initialize any model behaviors and add the models generated by Doctrine generators and add them to the $models array

Parameters
string$models
Returns
array $models

Definition at line 732 of file Core.php.

{
$models = self::filterInvalidModels($models);
foreach ($models as $model) {
$declaredBefore = get_declared_classes();
$declaredAfter = get_declared_classes();
// Using array_slice because array_diff is broken is some PHP versions
$foundClasses = array_slice($declaredAfter, count($declaredBefore) - 1);
foreach ($foundClasses as $class) {
if (self::isValidModelClass($class)) {
$models[] = $class;
}
}
}
$models = self::filterInvalidModels($models);
return $models;
}
static Doctrine_Core::isValidModelClass (   $class)
staticinherited

Checks if what is passed is a valid Doctrine_Record Will load class in to memory in order to inflect it and find out information about the class

Parameters
mixed$classCan be a string named after the class, an instance of the class, or an instance of the class reflected
Returns
boolean

Definition at line 782 of file Core.php.

{
if ($class instanceof Doctrine_Record) {
$class = get_class($class);
}
if (is_string($class) && class_exists($class)) {
$class = new ReflectionClass($class);
}
if ($class instanceof ReflectionClass) {
// Skip the following classes
// - abstract classes
// - not a subclass of Doctrine_Record
if ( ! $class->isAbstract() && $class->isSubClassOf('Doctrine_Record')) {
return true;
}
}
return false;
}
static Doctrine_Core::loadData (   $yamlPath,
  $append = false 
)
staticinherited

Load data from a yaml fixtures file. The output of dumpData can be fed to loadData

Parameters
string$yamlPathPath to your yaml data fixtures
string$appendWhether or not to append the data
Returns
void

Definition at line 997 of file Core.php.

{
$data = new Doctrine_Data();
return $data->importData($yamlPath, 'yml', array(), $append);
}
static Doctrine_Core::loadModel (   $className,
  $path = null 
)
staticinherited

Load an individual model name and path in to the model loading registry

Returns
null

Definition at line 589 of file Core.php.

{
self::$_loadedModelFiles[$className] = $path;
}
static Doctrine_Core::loadModels (   $directory,
  $modelLoading = null,
  $classPrefix = null 
)
staticinherited

Recursively load all models from a directory or array of directories

Parameters
string$directoryPath to directory of models or array of directory paths
integer$modelLoadingPass value of Doctrine_Core::ATTR_MODEL_LOADING to force a certain style of model loading Allowed Doctrine_Core::MODEL_LOADING_AGGRESSIVE(default) or Doctrine_Core::MODEL_LOADING_CONSERVATIVE
string$classPrefixThe class prefix of the models to load. This is useful if the class name and file name are not the same

Definition at line 626 of file Core.php.

{
$modelLoading = $modelLoading === null ? $manager->getAttribute(Doctrine_Core::ATTR_MODEL_LOADING) : $modelLoading;
$classPrefix = $classPrefix === null ? $manager->getAttribute(Doctrine_Core::ATTR_MODEL_CLASS_PREFIX) : $classPrefix;
$loadedModels = array();
if ($directory !== null) {
foreach ((array) $directory as $dir) {
$dir = rtrim($dir, '/');
if ( ! is_dir($dir)) {
throw new Doctrine_Exception('You must pass a valid path to a directory containing Doctrine models');
}
$it = new RecursiveIteratorIterator(new RecursiveDirectoryIterator($dir),
RecursiveIteratorIterator::LEAVES_ONLY);
foreach ($it as $file) {
$e = explode('.', $file->getFileName());
if (end($e) === 'php' && strpos($file->getFileName(), '.inc') === false) {
if ($modelLoading == Doctrine_Core::MODEL_LOADING_PEAR) {
$className = str_replace($dir . DIRECTORY_SEPARATOR, null, $file->getPathName());
$className = str_replace(DIRECTORY_SEPARATOR, '_', $className);
$className = substr($className, 0, strpos($className, '.'));
} else {
$className = $e[0];
}
if ($classPrefix && $classPrefix != substr($className, 0, strlen($classPrefix))) {
$className = $classPrefix . $className;
}
if ( ! class_exists($className, false)) {
self::loadModel($className, $file->getPathName());
$loadedModels[$className] = $className;
} else {
$declaredBefore = get_declared_classes();
require_once($file->getPathName());
$declaredAfter = get_declared_classes();
// Using array_slice because array_diff is broken is some PHP versions
$foundClasses = array_slice($declaredAfter, count($declaredBefore));
if ($foundClasses) {
foreach ($foundClasses as $className) {
if (self::isValidModelClass($className)) {
$loadedModels[$className] = $className;
self::loadModel($className, $file->getPathName());
}
}
}
$previouslyLoaded = array_keys(self::$_loadedModelFiles, $file->getPathName());
if ( ! empty($previouslyLoaded)) {
$previouslyLoaded = array_combine(array_values($previouslyLoaded), array_values($previouslyLoaded));
$loadedModels = array_merge($loadedModels, $previouslyLoaded);
}
}
} else if (self::isValidModelClass($className)) {
$loadedModels[$className] = $className;
}
}
}
}
}
asort($loadedModels);
return $loadedModels;
}
static Doctrine_Core::migrate (   $migrationsPath,
  $to = null 
)
staticinherited

Migrate database to specified $to version. Migrates from current to latest if you do not specify.

Parameters
string$migrationsPathPath to migrations directory which contains your migration classes
string$toVersion you wish to migrate to.
Returns
bool true
Exceptions
newDoctrine_Migration_Exception

Definition at line 1012 of file Core.php.

{
$migration = new Doctrine_Migration($migrationsPath);
return $migration->migrate($to);
}
static Doctrine_Core::setExtensionsPath (   $extensionsPath)
staticinherited

Set the path to autoload extension classes from

Parameters
string$extensionsPath
Returns
void

Definition at line 569 of file Core.php.

{
self::$_extensionsPath = $extensionsPath;
}
static Doctrine_Core::setModelsDirectory (   $directory)
staticinherited

Set the directory where your models are located for PEAR style naming convention autoloading.

Parameters
string$directory
Returns
void

Definition at line 601 of file Core.php.

{
self::$_modelsDirectory = $directory;
}
static Doctrine_Core::setPath (   $path)
staticinherited

Set the path to your core Doctrine libraries

Parameters
string$pathThe path to your Doctrine libraries
Returns
void

Definition at line 544 of file Core.php.

{
self::$_path = $path;
}

Field Documentation

const Doctrine_Core::ATTR_AUTOCOMMIT = 0
inherited

ATTRIBUTE CONSTANTS PDO derived attributes

Definition at line 130 of file Core.php.

const Doctrine_Core::ATTR_LISTENER = 100
inherited

Doctrine constants

Definition at line 153 of file Core.php.

const Doctrine_Core::CASE_LOWER = 2
inherited

PDO derived constants

Definition at line 83 of file Core.php.

const Doctrine_Core::ERR = -1
inherited

ERROR CONSTANTS

Definition at line 43 of file Core.php.

const Doctrine_Core::EXPORT_ALL = 7
inherited

EXPORT_ALL

Definition at line 330 of file Core.php.

const Doctrine_Core::EXPORT_CONSTRAINTS = 2
inherited

EXPORT_CONSTRAINTS

Definition at line 320 of file Core.php.

const Doctrine_Core::EXPORT_NONE = 0
inherited

EXPORT CONSTANTS EXPORT_NONE

Definition at line 310 of file Core.php.

const Doctrine_Core::EXPORT_PLUGINS = 4
inherited

EXPORT_PLUGINS

Definition at line 325 of file Core.php.

const Doctrine_Core::EXPORT_TABLES = 1
inherited

EXPORT_TABLES

Definition at line 315 of file Core.php.

const Doctrine_Core::HYDRATE_ARRAY = 3
inherited

HYDRATE_ARRAY

Definition at line 344 of file Core.php.

const Doctrine_Core::HYDRATE_ARRAY_HIERARCHY = 8
inherited

HYDRATE_ARRAY_HIERARCHY

Definition at line 369 of file Core.php.

const Doctrine_Core::HYDRATE_NONE = 4
inherited

HYDRATE_NONE

Definition at line 349 of file Core.php.

const Doctrine_Core::HYDRATE_ON_DEMAND = 7
inherited

HYDRATE_ON_DEMAND

Definition at line 364 of file Core.php.

const Doctrine_Core::HYDRATE_RECORD = 2
inherited

HYDRATION CONSTANTS HYDRATE_RECORD

Definition at line 339 of file Core.php.

const Doctrine_Core::HYDRATE_RECORD_HIERARCHY = 9
inherited

HYDRATE_RECORD_HIERARCHY

Definition at line 374 of file Core.php.

const Doctrine_Core::HYDRATE_SCALAR = 5
inherited

HYDRATE_SCALAR

Definition at line 354 of file Core.php.

const Doctrine_Core::HYDRATE_SINGLE_SCALAR = 6
inherited

HYDRATE_SINGLE_SCALAR

Definition at line 359 of file Core.php.

const Doctrine_Core::IDENTIFIER_AUTOINC = 1
inherited

IDENTIFIER_AUTOINC

constant for auto_increment identifier

Definition at line 411 of file Core.php.

const Doctrine_Core::IDENTIFIER_COMPOSITE = 4
inherited

IDENTIFIER_COMPOSITE

constant for composite identifier

Definition at line 432 of file Core.php.

const Doctrine_Core::IDENTIFIER_NATURAL = 3
inherited

IDENTIFIER_NATURAL

constant for normal identifier

Definition at line 425 of file Core.php.

const Doctrine_Core::IDENTIFIER_SEQUENCE = 2
inherited

IDENTIFIER_SEQUENCE

constant for sequence identifier

Definition at line 418 of file Core.php.

const Doctrine_Core::LIMIT_RECORDS = 2
inherited

constant for record limiting

Definition at line 227 of file Core.php.

const Doctrine_Core::LIMIT_ROWS = 1
inherited

LIMIT CONSTANTS constant for row limiting

Definition at line 221 of file Core.php.

const Doctrine_Core::LOCK_OPTIMISTIC = 0
inherited

LOCKMODE CONSTANTS mode for optimistic locking

Definition at line 296 of file Core.php.

const Doctrine_Core::LOCK_PESSIMISTIC = 1
inherited

mode for pessimistic locking

Definition at line 301 of file Core.php.

const Doctrine_Core::MODEL_LOADING_AGGRESSIVE = 1
inherited

MODEL_LOADING_AGGRESSIVE

Constant for agressive model loading Will require_once() all found model files

Definition at line 440 of file Core.php.

const Doctrine_Core::MODEL_LOADING_CONSERVATIVE = 2
inherited

MODEL_LOADING_CONSERVATIVE

Constant for conservative model loading Will not require_once() found model files inititally instead it will build an array and reference it in autoload() when a class is needed it will require_once() it

Definition at line 449 of file Core.php.

const Doctrine_Core::MODEL_LOADING_PEAR = 3
inherited

MODEL_LOADING_PEAR

Constant for pear model loading Will simply store the path passed to Doctrine_Core::loadModels() and Doctrine_Core::autoload() will check there

Definition at line 458 of file Core.php.

const Doctrine_Core::PORTABILITY_ALL = 63
inherited

Portability: turn on all portability features.

See Also
self::ATTR_PORTABILITY

Definition at line 287 of file Core.php.

const Doctrine_Core::PORTABILITY_DELETE_COUNT = 4
inherited

Portability: force reporting the number of rows deleted.

See Also
self::ATTR_PORTABILITY

Definition at line 262 of file Core.php.

const Doctrine_Core::PORTABILITY_EMPTY_TO_NULL = 8
inherited

Portability: convert empty values to null strings in data output by query*() and fetch*().

See Also
self::ATTR_PORTABILITY

Definition at line 269 of file Core.php.

const Doctrine_Core::PORTABILITY_EXPR = 32
inherited

Portability: makes Doctrine_Expression throw exception for unportable RDBMS expressions

See Also
self::ATTR_PORTABILITY

Definition at line 281 of file Core.php.

const Doctrine_Core::PORTABILITY_FIX_ASSOC_FIELD_NAMES = 16
inherited

Portability: removes database/table qualifiers from associative indexes

See Also
self::ATTR_PORTABILITY

Definition at line 275 of file Core.php.

const Doctrine_Core::PORTABILITY_FIX_CASE = 1
inherited

Portability: convert names of tables and fields to case defined in the "field_case" option when using the query*(), fetch*() methods.

See Also
self::ATTR_PORTABILITY

Definition at line 250 of file Core.php.

const Doctrine_Core::PORTABILITY_NONE = 0
inherited

FETCHMODE CONSTANTS PORTABILITY CONSTANTS Portability: turn off all portability features.

See Also
self::ATTR_PORTABILITY

Definition at line 243 of file Core.php.

const Doctrine_Core::PORTABILITY_RTRIM = 2
inherited

Portability: right trim the data output by query*() and fetch*().

See Also
self::ATTR_PORTABILITY

Definition at line 256 of file Core.php.

const Doctrine_Core::VALIDATE_ALL = 7
inherited

VALIDATE_ALL

Definition at line 399 of file Core.php.

const Doctrine_Core::VALIDATE_CONSTRAINTS = 4
inherited

VALIDATE_CONSTRAINTS

Definition at line 394 of file Core.php.

const Doctrine_Core::VALIDATE_LENGTHS = 1
inherited

VALIDATE_LENGTHS

Definition at line 384 of file Core.php.

const Doctrine_Core::VALIDATE_NONE = 0
inherited

VALIDATION CONSTANTS

Definition at line 379 of file Core.php.

const Doctrine_Core::VALIDATE_TYPES = 2
inherited

VALIDATE_TYPES

Definition at line 389 of file Core.php.

const Doctrine_Core::VALIDATE_USER = 8
inherited

VALIDATE_USER

Definition at line 404 of file Core.php.

const Doctrine_Core::VERSION = '1.2.4'
inherited

VERSION

Definition at line 38 of file Core.php.


The documentation for this class was generated from the following file: