Run pre-commit on legacy code
This commit is contained in:
parent
fea11ac752
commit
83b7e4162e
323 changed files with 6126 additions and 6462 deletions
|
@ -4,7 +4,7 @@
|
|||
/**
|
||||
* Base static class for performing query and update operations on the 'cc_access' table.
|
||||
*
|
||||
*
|
||||
*
|
||||
*
|
||||
* @package propel.generator.airtime.om
|
||||
*/
|
||||
|
@ -24,7 +24,7 @@ abstract class BaseCcAccessPeer {
|
|||
|
||||
/** the related TableMap class for this table */
|
||||
const TM_CLASS = 'CcAccessTableMap';
|
||||
|
||||
|
||||
/** The total number of columns. */
|
||||
const NUM_COLUMNS = 9;
|
||||
|
||||
|
@ -361,7 +361,7 @@ abstract class BaseCcAccessPeer {
|
|||
}
|
||||
return null; // just to be explicit
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Clear the instance pool.
|
||||
*
|
||||
|
@ -371,7 +371,7 @@ abstract class BaseCcAccessPeer {
|
|||
{
|
||||
self::$instances = array();
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Method to invalidate the instance pool of all tables related to cc_access
|
||||
* by a foreign key with ON DELETE CASCADE
|
||||
|
@ -400,7 +400,7 @@ abstract class BaseCcAccessPeer {
|
|||
}
|
||||
|
||||
/**
|
||||
* Retrieves the primary key from the DB resultset row
|
||||
* Retrieves the primary key from the DB resultset row
|
||||
* For tables with a single-column primary key, that simple pkey value will be returned. For tables with
|
||||
* a multi-column primary key, an array of the primary key columns will be returned.
|
||||
*
|
||||
|
@ -412,7 +412,7 @@ abstract class BaseCcAccessPeer {
|
|||
{
|
||||
return (int) $row[$startcol];
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* The returned array will contain objects of the default type or
|
||||
* objects that inherit from the default.
|
||||
|
@ -423,7 +423,7 @@ abstract class BaseCcAccessPeer {
|
|||
public static function populateObjects(PDOStatement $stmt)
|
||||
{
|
||||
$results = array();
|
||||
|
||||
|
||||
// set the class once to avoid overhead in the loop
|
||||
$cls = CcAccessPeer::getOMClass(false);
|
||||
// populate the object(s)
|
||||
|
@ -496,9 +496,9 @@ abstract class BaseCcAccessPeer {
|
|||
if (!$criteria->hasSelectClause()) {
|
||||
CcAccessPeer::addSelectColumns($criteria);
|
||||
}
|
||||
|
||||
|
||||
$criteria->clearOrderByColumns(); // ORDER BY won't ever affect the count
|
||||
|
||||
|
||||
// Set the correct dbName
|
||||
$criteria->setDbName(self::DATABASE_NAME);
|
||||
|
||||
|
@ -612,9 +612,9 @@ abstract class BaseCcAccessPeer {
|
|||
if (!$criteria->hasSelectClause()) {
|
||||
CcAccessPeer::addSelectColumns($criteria);
|
||||
}
|
||||
|
||||
|
||||
$criteria->clearOrderByColumns(); // ORDER BY won't ever affect the count
|
||||
|
||||
|
||||
// Set the correct dbName
|
||||
$criteria->setDbName(self::DATABASE_NAME);
|
||||
|
||||
|
@ -901,7 +901,7 @@ abstract class BaseCcAccessPeer {
|
|||
// use transaction because $criteria could contain info
|
||||
// for more than one table or we could emulating ON DELETE CASCADE, etc.
|
||||
$con->beginTransaction();
|
||||
|
||||
|
||||
$affectedRows += BasePeer::doDelete($criteria, $con);
|
||||
CcAccessPeer::clearRelatedInstancePool();
|
||||
$con->commit();
|
||||
|
@ -1005,4 +1005,3 @@ abstract class BaseCcAccessPeer {
|
|||
// This is the static code needed to register the TableMap for this table with the main Propel class.
|
||||
//
|
||||
BaseCcAccessPeer::buildTableMap();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue