@@ -127,12 +127,12 @@ discard block |
||
| 127 | 127 | * first dimension keys are the type constants |
| 128 | 128 | * e.g. self::$fieldNames[self::TYPE_PHPNAME][0] = 'Id' |
| 129 | 129 | */ |
| 130 | - protected static $fieldNames = array ( |
|
| 131 | - self::TYPE_PHPNAME => array('Id', 'InstanceName', 'UserId', 'ChannelId', 'SubscriptionId', 'Started', 'Stopped', 'Title', 'Service', ), |
|
| 132 | - self::TYPE_CAMELNAME => array('id', 'instanceName', 'userId', 'channelId', 'subscriptionId', 'started', 'stopped', 'title', 'service', ), |
|
| 133 | - self::TYPE_COLNAME => array(SubscriptionTableMap::COL_ID, SubscriptionTableMap::COL_INSTANCE_NAME, SubscriptionTableMap::COL_USER_ID, SubscriptionTableMap::COL_CHANNEL_ID, SubscriptionTableMap::COL_SUBSCRIPTION_ID, SubscriptionTableMap::COL_STARTED, SubscriptionTableMap::COL_STOPPED, SubscriptionTableMap::COL_TITLE, SubscriptionTableMap::COL_SERVICE, ), |
|
| 134 | - self::TYPE_FIELDNAME => array('id', 'instance_name', 'user_id', 'channel_id', 'subscription_id', 'started', 'stopped', 'title', 'service', ), |
|
| 135 | - self::TYPE_NUM => array(0, 1, 2, 3, 4, 5, 6, 7, 8, ) |
|
| 130 | + protected static $fieldNames = array( |
|
| 131 | + self::TYPE_PHPNAME => array('Id', 'InstanceName', 'UserId', 'ChannelId', 'SubscriptionId', 'Started', 'Stopped', 'Title', 'Service',), |
|
| 132 | + self::TYPE_CAMELNAME => array('id', 'instanceName', 'userId', 'channelId', 'subscriptionId', 'started', 'stopped', 'title', 'service',), |
|
| 133 | + self::TYPE_COLNAME => array(SubscriptionTableMap::COL_ID, SubscriptionTableMap::COL_INSTANCE_NAME, SubscriptionTableMap::COL_USER_ID, SubscriptionTableMap::COL_CHANNEL_ID, SubscriptionTableMap::COL_SUBSCRIPTION_ID, SubscriptionTableMap::COL_STARTED, SubscriptionTableMap::COL_STOPPED, SubscriptionTableMap::COL_TITLE, SubscriptionTableMap::COL_SERVICE,), |
|
| 134 | + self::TYPE_FIELDNAME => array('id', 'instance_name', 'user_id', 'channel_id', 'subscription_id', 'started', 'stopped', 'title', 'service',), |
|
| 135 | + self::TYPE_NUM => array(0, 1, 2, 3, 4, 5, 6, 7, 8,) |
|
| 136 | 136 | ); |
| 137 | 137 | |
| 138 | 138 | /** |
@@ -141,12 +141,12 @@ discard block |
||
| 141 | 141 | * first dimension keys are the type constants |
| 142 | 142 | * e.g. self::$fieldKeys[self::TYPE_PHPNAME]['Id'] = 0 |
| 143 | 143 | */ |
| 144 | - protected static $fieldKeys = array ( |
|
| 145 | - self::TYPE_PHPNAME => array('Id' => 0, 'InstanceName' => 1, 'UserId' => 2, 'ChannelId' => 3, 'SubscriptionId' => 4, 'Started' => 5, 'Stopped' => 6, 'Title' => 7, 'Service' => 8, ), |
|
| 146 | - self::TYPE_CAMELNAME => array('id' => 0, 'instanceName' => 1, 'userId' => 2, 'channelId' => 3, 'subscriptionId' => 4, 'started' => 5, 'stopped' => 6, 'title' => 7, 'service' => 8, ), |
|
| 147 | - self::TYPE_COLNAME => array(SubscriptionTableMap::COL_ID => 0, SubscriptionTableMap::COL_INSTANCE_NAME => 1, SubscriptionTableMap::COL_USER_ID => 2, SubscriptionTableMap::COL_CHANNEL_ID => 3, SubscriptionTableMap::COL_SUBSCRIPTION_ID => 4, SubscriptionTableMap::COL_STARTED => 5, SubscriptionTableMap::COL_STOPPED => 6, SubscriptionTableMap::COL_TITLE => 7, SubscriptionTableMap::COL_SERVICE => 8, ), |
|
| 148 | - self::TYPE_FIELDNAME => array('id' => 0, 'instance_name' => 1, 'user_id' => 2, 'channel_id' => 3, 'subscription_id' => 4, 'started' => 5, 'stopped' => 6, 'title' => 7, 'service' => 8, ), |
|
| 149 | - self::TYPE_NUM => array(0, 1, 2, 3, 4, 5, 6, 7, 8, ) |
|
| 144 | + protected static $fieldKeys = array( |
|
| 145 | + self::TYPE_PHPNAME => array('Id' => 0, 'InstanceName' => 1, 'UserId' => 2, 'ChannelId' => 3, 'SubscriptionId' => 4, 'Started' => 5, 'Stopped' => 6, 'Title' => 7, 'Service' => 8,), |
|
| 146 | + self::TYPE_CAMELNAME => array('id' => 0, 'instanceName' => 1, 'userId' => 2, 'channelId' => 3, 'subscriptionId' => 4, 'started' => 5, 'stopped' => 6, 'title' => 7, 'service' => 8,), |
|
| 147 | + self::TYPE_COLNAME => array(SubscriptionTableMap::COL_ID => 0, SubscriptionTableMap::COL_INSTANCE_NAME => 1, SubscriptionTableMap::COL_USER_ID => 2, SubscriptionTableMap::COL_CHANNEL_ID => 3, SubscriptionTableMap::COL_SUBSCRIPTION_ID => 4, SubscriptionTableMap::COL_STARTED => 5, SubscriptionTableMap::COL_STOPPED => 6, SubscriptionTableMap::COL_TITLE => 7, SubscriptionTableMap::COL_SERVICE => 8,), |
|
| 148 | + self::TYPE_FIELDNAME => array('id' => 0, 'instance_name' => 1, 'user_id' => 2, 'channel_id' => 3, 'subscription_id' => 4, 'started' => 5, 'stopped' => 6, 'title' => 7, 'service' => 8,), |
|
| 149 | + self::TYPE_NUM => array(0, 1, 2, 3, 4, 5, 6, 7, 8,) |
|
| 150 | 150 | ); |
| 151 | 151 | |
| 152 | 152 | /** |
@@ -182,23 +182,23 @@ discard block |
||
| 182 | 182 | */ |
| 183 | 183 | public function buildRelations() |
| 184 | 184 | { |
| 185 | - $this->addRelation('Instance', '\\Jalle19\\StatusManager\\Database\\Instance', RelationMap::MANY_TO_ONE, array ( |
|
| 185 | + $this->addRelation('Instance', '\\Jalle19\\StatusManager\\Database\\Instance', RelationMap::MANY_TO_ONE, array( |
|
| 186 | 186 | 0 => |
| 187 | - array ( |
|
| 187 | + array( |
|
| 188 | 188 | 0 => ':instance_name', |
| 189 | 189 | 1 => ':name', |
| 190 | 190 | ), |
| 191 | 191 | ), null, null, null, false); |
| 192 | - $this->addRelation('User', '\\Jalle19\\StatusManager\\Database\\User', RelationMap::MANY_TO_ONE, array ( |
|
| 192 | + $this->addRelation('User', '\\Jalle19\\StatusManager\\Database\\User', RelationMap::MANY_TO_ONE, array( |
|
| 193 | 193 | 0 => |
| 194 | - array ( |
|
| 194 | + array( |
|
| 195 | 195 | 0 => ':user_id', |
| 196 | 196 | 1 => ':id', |
| 197 | 197 | ), |
| 198 | 198 | ), null, null, null, false); |
| 199 | - $this->addRelation('Channel', '\\Jalle19\\StatusManager\\Database\\Channel', RelationMap::MANY_TO_ONE, array ( |
|
| 199 | + $this->addRelation('Channel', '\\Jalle19\\StatusManager\\Database\\Channel', RelationMap::MANY_TO_ONE, array( |
|
| 200 | 200 | 0 => |
| 201 | - array ( |
|
| 201 | + array( |
|
| 202 | 202 | 0 => ':channel_id', |
| 203 | 203 | 1 => ':id', |
| 204 | 204 | ), |
@@ -464,8 +464,8 @@ discard block |
||
| 464 | 464 | $criteria = $criteria->buildCriteria(); // build Criteria from Subscription object |
| 465 | 465 | } |
| 466 | 466 | |
| 467 | - if ($criteria->containsKey(SubscriptionTableMap::COL_ID) && $criteria->keyContainsValue(SubscriptionTableMap::COL_ID) ) { |
|
| 468 | - throw new PropelException('Cannot insert a value for auto-increment primary key ('.SubscriptionTableMap::COL_ID.')'); |
|
| 467 | + if ($criteria->containsKey(SubscriptionTableMap::COL_ID) && $criteria->keyContainsValue(SubscriptionTableMap::COL_ID)) { |
|
| 468 | + throw new PropelException('Cannot insert a value for auto-increment primary key (' . SubscriptionTableMap::COL_ID . ')'); |
|
| 469 | 469 | } |
| 470 | 470 | |
| 471 | 471 | |
@@ -474,7 +474,7 @@ discard block |
||
| 474 | 474 | |
| 475 | 475 | // use transaction because $criteria could contain info |
| 476 | 476 | // for more than one table (I guess, conceivably) |
| 477 | - return $con->transaction(function () use ($con, $query) { |
|
| 477 | + return $con->transaction(function() use ($con, $query) { |
|
| 478 | 478 | return $query->doInsert($con); |
| 479 | 479 | }); |
| 480 | 480 | } |
@@ -97,12 +97,12 @@ discard block |
||
| 97 | 97 | * first dimension keys are the type constants |
| 98 | 98 | * e.g. self::$fieldNames[self::TYPE_PHPNAME][0] = 'Id' |
| 99 | 99 | */ |
| 100 | - protected static $fieldNames = array ( |
|
| 101 | - self::TYPE_PHPNAME => array('Id', 'InstanceName', 'Name', ), |
|
| 102 | - self::TYPE_CAMELNAME => array('id', 'instanceName', 'name', ), |
|
| 103 | - self::TYPE_COLNAME => array(UserTableMap::COL_ID, UserTableMap::COL_INSTANCE_NAME, UserTableMap::COL_NAME, ), |
|
| 104 | - self::TYPE_FIELDNAME => array('id', 'instance_name', 'name', ), |
|
| 105 | - self::TYPE_NUM => array(0, 1, 2, ) |
|
| 100 | + protected static $fieldNames = array( |
|
| 101 | + self::TYPE_PHPNAME => array('Id', 'InstanceName', 'Name',), |
|
| 102 | + self::TYPE_CAMELNAME => array('id', 'instanceName', 'name',), |
|
| 103 | + self::TYPE_COLNAME => array(UserTableMap::COL_ID, UserTableMap::COL_INSTANCE_NAME, UserTableMap::COL_NAME,), |
|
| 104 | + self::TYPE_FIELDNAME => array('id', 'instance_name', 'name',), |
|
| 105 | + self::TYPE_NUM => array(0, 1, 2,) |
|
| 106 | 106 | ); |
| 107 | 107 | |
| 108 | 108 | /** |
@@ -111,12 +111,12 @@ discard block |
||
| 111 | 111 | * first dimension keys are the type constants |
| 112 | 112 | * e.g. self::$fieldKeys[self::TYPE_PHPNAME]['Id'] = 0 |
| 113 | 113 | */ |
| 114 | - protected static $fieldKeys = array ( |
|
| 115 | - self::TYPE_PHPNAME => array('Id' => 0, 'InstanceName' => 1, 'Name' => 2, ), |
|
| 116 | - self::TYPE_CAMELNAME => array('id' => 0, 'instanceName' => 1, 'name' => 2, ), |
|
| 117 | - self::TYPE_COLNAME => array(UserTableMap::COL_ID => 0, UserTableMap::COL_INSTANCE_NAME => 1, UserTableMap::COL_NAME => 2, ), |
|
| 118 | - self::TYPE_FIELDNAME => array('id' => 0, 'instance_name' => 1, 'name' => 2, ), |
|
| 119 | - self::TYPE_NUM => array(0, 1, 2, ) |
|
| 114 | + protected static $fieldKeys = array( |
|
| 115 | + self::TYPE_PHPNAME => array('Id' => 0, 'InstanceName' => 1, 'Name' => 2,), |
|
| 116 | + self::TYPE_CAMELNAME => array('id' => 0, 'instanceName' => 1, 'name' => 2,), |
|
| 117 | + self::TYPE_COLNAME => array(UserTableMap::COL_ID => 0, UserTableMap::COL_INSTANCE_NAME => 1, UserTableMap::COL_NAME => 2,), |
|
| 118 | + self::TYPE_FIELDNAME => array('id' => 0, 'instance_name' => 1, 'name' => 2,), |
|
| 119 | + self::TYPE_NUM => array(0, 1, 2,) |
|
| 120 | 120 | ); |
| 121 | 121 | |
| 122 | 122 | /** |
@@ -146,23 +146,23 @@ discard block |
||
| 146 | 146 | */ |
| 147 | 147 | public function buildRelations() |
| 148 | 148 | { |
| 149 | - $this->addRelation('Instance', '\\Jalle19\\StatusManager\\Database\\Instance', RelationMap::MANY_TO_ONE, array ( |
|
| 149 | + $this->addRelation('Instance', '\\Jalle19\\StatusManager\\Database\\Instance', RelationMap::MANY_TO_ONE, array( |
|
| 150 | 150 | 0 => |
| 151 | - array ( |
|
| 151 | + array( |
|
| 152 | 152 | 0 => ':instance_name', |
| 153 | 153 | 1 => ':name', |
| 154 | 154 | ), |
| 155 | 155 | ), null, null, null, false); |
| 156 | - $this->addRelation('Connection', '\\Jalle19\\StatusManager\\Database\\Connection', RelationMap::ONE_TO_MANY, array ( |
|
| 156 | + $this->addRelation('Connection', '\\Jalle19\\StatusManager\\Database\\Connection', RelationMap::ONE_TO_MANY, array( |
|
| 157 | 157 | 0 => |
| 158 | - array ( |
|
| 158 | + array( |
|
| 159 | 159 | 0 => ':user_id', |
| 160 | 160 | 1 => ':id', |
| 161 | 161 | ), |
| 162 | 162 | ), null, null, 'Connections', false); |
| 163 | - $this->addRelation('Subscription', '\\Jalle19\\StatusManager\\Database\\Subscription', RelationMap::ONE_TO_MANY, array ( |
|
| 163 | + $this->addRelation('Subscription', '\\Jalle19\\StatusManager\\Database\\Subscription', RelationMap::ONE_TO_MANY, array( |
|
| 164 | 164 | 0 => |
| 165 | - array ( |
|
| 165 | + array( |
|
| 166 | 166 | 0 => ':user_id', |
| 167 | 167 | 1 => ':id', |
| 168 | 168 | ), |
@@ -416,8 +416,8 @@ discard block |
||
| 416 | 416 | $criteria = $criteria->buildCriteria(); // build Criteria from User object |
| 417 | 417 | } |
| 418 | 418 | |
| 419 | - if ($criteria->containsKey(UserTableMap::COL_ID) && $criteria->keyContainsValue(UserTableMap::COL_ID) ) { |
|
| 420 | - throw new PropelException('Cannot insert a value for auto-increment primary key ('.UserTableMap::COL_ID.')'); |
|
| 419 | + if ($criteria->containsKey(UserTableMap::COL_ID) && $criteria->keyContainsValue(UserTableMap::COL_ID)) { |
|
| 420 | + throw new PropelException('Cannot insert a value for auto-increment primary key (' . UserTableMap::COL_ID . ')'); |
|
| 421 | 421 | } |
| 422 | 422 | |
| 423 | 423 | |
@@ -426,7 +426,7 @@ discard block |
||
| 426 | 426 | |
| 427 | 427 | // use transaction because $criteria could contain info |
| 428 | 428 | // for more than one table (I guess, conceivably) |
| 429 | - return $con->transaction(function () use ($con, $query) { |
|
| 429 | + return $con->transaction(function() use ($con, $query) { |
|
| 430 | 430 | return $query->doInsert($con); |
| 431 | 431 | }); |
| 432 | 432 | } |
@@ -620,7 +620,7 @@ discard block |
||
| 620 | 620 | |
| 621 | 621 | // use transaction because $criteria could contain info |
| 622 | 622 | // for more than one table or we could emulating ON DELETE CASCADE, etc. |
| 623 | - return $con->transaction(function () use ($con) { |
|
| 623 | + return $con->transaction(function() use ($con) { |
|
| 624 | 624 | $affectedRows = 0; // initialize var to track total num of affected rows |
| 625 | 625 | $affectedRows += parent::doDeleteAll($con); |
| 626 | 626 | // Because this db requires some delete cascade/set null emulation, we have to |
@@ -655,7 +655,7 @@ discard block |
||
| 655 | 655 | |
| 656 | 656 | // use transaction because $criteria could contain info |
| 657 | 657 | // for more than one table or we could emulating ON DELETE CASCADE, etc. |
| 658 | - return $con->transaction(function () use ($con, $criteria) { |
|
| 658 | + return $con->transaction(function() use ($con, $criteria) { |
|
| 659 | 659 | $affectedRows = 0; // initialize var to track total num of affected rows |
| 660 | 660 | |
| 661 | 661 | UserTableMap::removeInstanceFromPool($criteria); |
@@ -620,7 +620,7 @@ discard block |
||
| 620 | 620 | |
| 621 | 621 | // use transaction because $criteria could contain info |
| 622 | 622 | // for more than one table or we could emulating ON DELETE CASCADE, etc. |
| 623 | - return $con->transaction(function () use ($con) { |
|
| 623 | + return $con->transaction(function() use ($con) { |
|
| 624 | 624 | $affectedRows = 0; // initialize var to track total num of affected rows |
| 625 | 625 | $affectedRows += parent::doDeleteAll($con); |
| 626 | 626 | // Because this db requires some delete cascade/set null emulation, we have to |
@@ -655,7 +655,7 @@ discard block |
||
| 655 | 655 | |
| 656 | 656 | // use transaction because $criteria could contain info |
| 657 | 657 | // for more than one table or we could emulating ON DELETE CASCADE, etc. |
| 658 | - return $con->transaction(function () use ($con, $criteria) { |
|
| 658 | + return $con->transaction(function() use ($con, $criteria) { |
|
| 659 | 659 | $affectedRows = 0; // initialize var to track total num of affected rows |
| 660 | 660 | |
| 661 | 661 | UserTableMap::removeInstanceFromPool($criteria); |
@@ -620,7 +620,7 @@ discard block |
||
| 620 | 620 | |
| 621 | 621 | // use transaction because $criteria could contain info |
| 622 | 622 | // for more than one table or we could emulating ON DELETE CASCADE, etc. |
| 623 | - return $con->transaction(function () use ($con) { |
|
| 623 | + return $con->transaction(function() use ($con) { |
|
| 624 | 624 | $affectedRows = 0; // initialize var to track total num of affected rows |
| 625 | 625 | $affectedRows += parent::doDeleteAll($con); |
| 626 | 626 | // Because this db requires some delete cascade/set null emulation, we have to |
@@ -655,7 +655,7 @@ discard block |
||
| 655 | 655 | |
| 656 | 656 | // use transaction because $criteria could contain info |
| 657 | 657 | // for more than one table or we could emulating ON DELETE CASCADE, etc. |
| 658 | - return $con->transaction(function () use ($con, $criteria) { |
|
| 658 | + return $con->transaction(function() use ($con, $criteria) { |
|
| 659 | 659 | $affectedRows = 0; // initialize var to track total num of affected rows |
| 660 | 660 | |
| 661 | 661 | UserTableMap::removeInstanceFromPool($criteria); |
@@ -620,7 +620,7 @@ discard block |
||
| 620 | 620 | |
| 621 | 621 | // use transaction because $criteria could contain info |
| 622 | 622 | // for more than one table or we could emulating ON DELETE CASCADE, etc. |
| 623 | - return $con->transaction(function () use ($con) { |
|
| 623 | + return $con->transaction(function() use ($con) { |
|
| 624 | 624 | $affectedRows = 0; // initialize var to track total num of affected rows |
| 625 | 625 | $affectedRows += parent::doDeleteAll($con); |
| 626 | 626 | // Because this db requires some delete cascade/set null emulation, we have to |
@@ -655,7 +655,7 @@ discard block |
||
| 655 | 655 | |
| 656 | 656 | // use transaction because $criteria could contain info |
| 657 | 657 | // for more than one table or we could emulating ON DELETE CASCADE, etc. |
| 658 | - return $con->transaction(function () use ($con, $criteria) { |
|
| 658 | + return $con->transaction(function() use ($con, $criteria) { |
|
| 659 | 659 | $affectedRows = 0; // initialize var to track total num of affected rows |
| 660 | 660 | |
| 661 | 661 | UserTableMap::removeInstanceFromPool($criteria); |