cc-2977: getting close!!!
This commit is contained in:
parent
905775552d
commit
61c5355e8a
13 changed files with 323 additions and 70 deletions
|
@ -26,7 +26,7 @@ abstract class BaseCcMusicDirsPeer {
|
|||
const TM_CLASS = 'CcMusicDirsTableMap';
|
||||
|
||||
/** The total number of columns. */
|
||||
const NUM_COLUMNS = 3;
|
||||
const NUM_COLUMNS = 4;
|
||||
|
||||
/** The number of lazy-loaded columns. */
|
||||
const NUM_LAZY_LOAD_COLUMNS = 0;
|
||||
|
@ -40,6 +40,9 @@ abstract class BaseCcMusicDirsPeer {
|
|||
/** the column name for the TYPE field */
|
||||
const TYPE = 'cc_music_dirs.TYPE';
|
||||
|
||||
/** the column name for the REMOVED field */
|
||||
const REMOVED = 'cc_music_dirs.REMOVED';
|
||||
|
||||
/**
|
||||
* An identiy map to hold any loaded instances of CcMusicDirs objects.
|
||||
* This must be public so that other peer classes can access this when hydrating from JOIN
|
||||
|
@ -56,12 +59,12 @@ abstract class BaseCcMusicDirsPeer {
|
|||
* e.g. self::$fieldNames[self::TYPE_PHPNAME][0] = 'Id'
|
||||
*/
|
||||
private static $fieldNames = array (
|
||||
BasePeer::TYPE_PHPNAME => array ('Id', 'Directory', 'Type', ),
|
||||
BasePeer::TYPE_STUDLYPHPNAME => array ('id', 'directory', 'type', ),
|
||||
BasePeer::TYPE_COLNAME => array (self::ID, self::DIRECTORY, self::TYPE, ),
|
||||
BasePeer::TYPE_RAW_COLNAME => array ('ID', 'DIRECTORY', 'TYPE', ),
|
||||
BasePeer::TYPE_FIELDNAME => array ('id', 'directory', 'type', ),
|
||||
BasePeer::TYPE_NUM => array (0, 1, 2, )
|
||||
BasePeer::TYPE_PHPNAME => array ('Id', 'Directory', 'Type', 'Removed', ),
|
||||
BasePeer::TYPE_STUDLYPHPNAME => array ('id', 'directory', 'type', 'removed', ),
|
||||
BasePeer::TYPE_COLNAME => array (self::ID, self::DIRECTORY, self::TYPE, self::REMOVED, ),
|
||||
BasePeer::TYPE_RAW_COLNAME => array ('ID', 'DIRECTORY', 'TYPE', 'REMOVED', ),
|
||||
BasePeer::TYPE_FIELDNAME => array ('id', 'directory', 'type', 'removed', ),
|
||||
BasePeer::TYPE_NUM => array (0, 1, 2, 3, )
|
||||
);
|
||||
|
||||
/**
|
||||
|
@ -71,12 +74,12 @@ abstract class BaseCcMusicDirsPeer {
|
|||
* e.g. self::$fieldNames[BasePeer::TYPE_PHPNAME]['Id'] = 0
|
||||
*/
|
||||
private static $fieldKeys = array (
|
||||
BasePeer::TYPE_PHPNAME => array ('Id' => 0, 'Directory' => 1, 'Type' => 2, ),
|
||||
BasePeer::TYPE_STUDLYPHPNAME => array ('id' => 0, 'directory' => 1, 'type' => 2, ),
|
||||
BasePeer::TYPE_COLNAME => array (self::ID => 0, self::DIRECTORY => 1, self::TYPE => 2, ),
|
||||
BasePeer::TYPE_RAW_COLNAME => array ('ID' => 0, 'DIRECTORY' => 1, 'TYPE' => 2, ),
|
||||
BasePeer::TYPE_FIELDNAME => array ('id' => 0, 'directory' => 1, 'type' => 2, ),
|
||||
BasePeer::TYPE_NUM => array (0, 1, 2, )
|
||||
BasePeer::TYPE_PHPNAME => array ('Id' => 0, 'Directory' => 1, 'Type' => 2, 'Removed' => 3, ),
|
||||
BasePeer::TYPE_STUDLYPHPNAME => array ('id' => 0, 'directory' => 1, 'type' => 2, 'removed' => 3, ),
|
||||
BasePeer::TYPE_COLNAME => array (self::ID => 0, self::DIRECTORY => 1, self::TYPE => 2, self::REMOVED => 3, ),
|
||||
BasePeer::TYPE_RAW_COLNAME => array ('ID' => 0, 'DIRECTORY' => 1, 'TYPE' => 2, 'REMOVED' => 3, ),
|
||||
BasePeer::TYPE_FIELDNAME => array ('id' => 0, 'directory' => 1, 'type' => 2, 'removed' => 3, ),
|
||||
BasePeer::TYPE_NUM => array (0, 1, 2, 3, )
|
||||
);
|
||||
|
||||
/**
|
||||
|
@ -151,10 +154,12 @@ abstract class BaseCcMusicDirsPeer {
|
|||
$criteria->addSelectColumn(CcMusicDirsPeer::ID);
|
||||
$criteria->addSelectColumn(CcMusicDirsPeer::DIRECTORY);
|
||||
$criteria->addSelectColumn(CcMusicDirsPeer::TYPE);
|
||||
$criteria->addSelectColumn(CcMusicDirsPeer::REMOVED);
|
||||
} else {
|
||||
$criteria->addSelectColumn($alias . '.ID');
|
||||
$criteria->addSelectColumn($alias . '.DIRECTORY');
|
||||
$criteria->addSelectColumn($alias . '.TYPE');
|
||||
$criteria->addSelectColumn($alias . '.REMOVED');
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -348,9 +353,6 @@ abstract class BaseCcMusicDirsPeer {
|
|||
*/
|
||||
public static function clearRelatedInstancePool()
|
||||
{
|
||||
// Invalidate objects in CcFilesPeer instance pool,
|
||||
// since one or more of them may be deleted by ON DELETE CASCADE/SETNULL rule.
|
||||
CcFilesPeer::clearInstancePool();
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue