src/cli/Database/Base/ChannelQuery.php 1 location
|
@@ 136-156 (lines=21) @@
|
| 133 |
|
* |
| 134 |
|
* @return ChildChannel|array|mixed the result, formatted by the current formatter |
| 135 |
|
*/ |
| 136 |
|
public function findPk($key, ConnectionInterface $con = null) |
| 137 |
|
{ |
| 138 |
|
if ($key === null) { |
| 139 |
|
return null; |
| 140 |
|
} |
| 141 |
|
if ((null !== ($obj = ChannelTableMap::getInstanceFromPool(null === $key || is_scalar($key) || is_callable([$key, '__toString']) ? (string) $key : $key))) && !$this->formatter) { |
| 142 |
|
// the object is already in the instance pool |
| 143 |
|
return $obj; |
| 144 |
|
} |
| 145 |
|
if ($con === null) { |
| 146 |
|
$con = Propel::getServiceContainer()->getReadConnection(ChannelTableMap::DATABASE_NAME); |
| 147 |
|
} |
| 148 |
|
$this->basePreSelect($con); |
| 149 |
|
if ($this->formatter || $this->modelAlias || $this->with || $this->select |
| 150 |
|
|| $this->selectColumns || $this->asColumns || $this->selectModifiers |
| 151 |
|
|| $this->map || $this->having || $this->joins) { |
| 152 |
|
return $this->findPkComplex($key, $con); |
| 153 |
|
} else { |
| 154 |
|
return $this->findPkSimple($key, $con); |
| 155 |
|
} |
| 156 |
|
} |
| 157 |
|
|
| 158 |
|
/** |
| 159 |
|
* Find object by primary key using raw SQL to go fast. |
src/cli/Database/Base/ConnectionQuery.php 1 location
|
@@ 151-171 (lines=21) @@
|
| 148 |
|
* |
| 149 |
|
* @return ChildConnection|array|mixed the result, formatted by the current formatter |
| 150 |
|
*/ |
| 151 |
|
public function findPk($key, ConnectionInterface $con = null) |
| 152 |
|
{ |
| 153 |
|
if ($key === null) { |
| 154 |
|
return null; |
| 155 |
|
} |
| 156 |
|
if ((null !== ($obj = ConnectionTableMap::getInstanceFromPool(null === $key || is_scalar($key) || is_callable([$key, '__toString']) ? (string) $key : $key))) && !$this->formatter) { |
| 157 |
|
// the object is already in the instance pool |
| 158 |
|
return $obj; |
| 159 |
|
} |
| 160 |
|
if ($con === null) { |
| 161 |
|
$con = Propel::getServiceContainer()->getReadConnection(ConnectionTableMap::DATABASE_NAME); |
| 162 |
|
} |
| 163 |
|
$this->basePreSelect($con); |
| 164 |
|
if ($this->formatter || $this->modelAlias || $this->with || $this->select |
| 165 |
|
|| $this->selectColumns || $this->asColumns || $this->selectModifiers |
| 166 |
|
|| $this->map || $this->having || $this->joins) { |
| 167 |
|
return $this->findPkComplex($key, $con); |
| 168 |
|
} else { |
| 169 |
|
return $this->findPkSimple($key, $con); |
| 170 |
|
} |
| 171 |
|
} |
| 172 |
|
|
| 173 |
|
/** |
| 174 |
|
* Find object by primary key using raw SQL to go fast. |
src/cli/Database/Base/UserQuery.php 1 location
|
@@ 146-166 (lines=21) @@
|
| 143 |
|
* |
| 144 |
|
* @return ChildUser|array|mixed the result, formatted by the current formatter |
| 145 |
|
*/ |
| 146 |
|
public function findPk($key, ConnectionInterface $con = null) |
| 147 |
|
{ |
| 148 |
|
if ($key === null) { |
| 149 |
|
return null; |
| 150 |
|
} |
| 151 |
|
if ((null !== ($obj = UserTableMap::getInstanceFromPool(null === $key || is_scalar($key) || is_callable([$key, '__toString']) ? (string) $key : $key))) && !$this->formatter) { |
| 152 |
|
// the object is already in the instance pool |
| 153 |
|
return $obj; |
| 154 |
|
} |
| 155 |
|
if ($con === null) { |
| 156 |
|
$con = Propel::getServiceContainer()->getReadConnection(UserTableMap::DATABASE_NAME); |
| 157 |
|
} |
| 158 |
|
$this->basePreSelect($con); |
| 159 |
|
if ($this->formatter || $this->modelAlias || $this->with || $this->select |
| 160 |
|
|| $this->selectColumns || $this->asColumns || $this->selectModifiers |
| 161 |
|
|| $this->map || $this->having || $this->joins) { |
| 162 |
|
return $this->findPkComplex($key, $con); |
| 163 |
|
} else { |
| 164 |
|
return $this->findPkSimple($key, $con); |
| 165 |
|
} |
| 166 |
|
} |
| 167 |
|
|
| 168 |
|
/** |
| 169 |
|
* Find object by primary key using raw SQL to go fast. |
src/cli/Database/Base/InputQuery.php 1 location
|
@@ 156-176 (lines=21) @@
|
| 153 |
|
* |
| 154 |
|
* @return ChildInput|array|mixed the result, formatted by the current formatter |
| 155 |
|
*/ |
| 156 |
|
public function findPk($key, ConnectionInterface $con = null) |
| 157 |
|
{ |
| 158 |
|
if ($key === null) { |
| 159 |
|
return null; |
| 160 |
|
} |
| 161 |
|
if ((null !== ($obj = InputTableMap::getInstanceFromPool(null === $key || is_scalar($key) || is_callable([$key, '__toString']) ? (string) $key : $key))) && !$this->formatter) { |
| 162 |
|
// the object is already in the instance pool |
| 163 |
|
return $obj; |
| 164 |
|
} |
| 165 |
|
if ($con === null) { |
| 166 |
|
$con = Propel::getServiceContainer()->getReadConnection(InputTableMap::DATABASE_NAME); |
| 167 |
|
} |
| 168 |
|
$this->basePreSelect($con); |
| 169 |
|
if ($this->formatter || $this->modelAlias || $this->with || $this->select |
| 170 |
|
|| $this->selectColumns || $this->asColumns || $this->selectModifiers |
| 171 |
|
|| $this->map || $this->having || $this->joins) { |
| 172 |
|
return $this->findPkComplex($key, $con); |
| 173 |
|
} else { |
| 174 |
|
return $this->findPkSimple($key, $con); |
| 175 |
|
} |
| 176 |
|
} |
| 177 |
|
|
| 178 |
|
/** |
| 179 |
|
* Find object by primary key using raw SQL to go fast. |
src/cli/Database/Base/InstanceQuery.php 1 location
|
@@ 156-176 (lines=21) @@
|
| 153 |
|
* |
| 154 |
|
* @return ChildInstance|array|mixed the result, formatted by the current formatter |
| 155 |
|
*/ |
| 156 |
|
public function findPk($key, ConnectionInterface $con = null) |
| 157 |
|
{ |
| 158 |
|
if ($key === null) { |
| 159 |
|
return null; |
| 160 |
|
} |
| 161 |
|
if ((null !== ($obj = InstanceTableMap::getInstanceFromPool(null === $key || is_scalar($key) || is_callable([$key, '__toString']) ? (string) $key : $key))) && !$this->formatter) { |
| 162 |
|
// the object is already in the instance pool |
| 163 |
|
return $obj; |
| 164 |
|
} |
| 165 |
|
if ($con === null) { |
| 166 |
|
$con = Propel::getServiceContainer()->getReadConnection(InstanceTableMap::DATABASE_NAME); |
| 167 |
|
} |
| 168 |
|
$this->basePreSelect($con); |
| 169 |
|
if ($this->formatter || $this->modelAlias || $this->with || $this->select |
| 170 |
|
|| $this->selectColumns || $this->asColumns || $this->selectModifiers |
| 171 |
|
|| $this->map || $this->having || $this->joins) { |
| 172 |
|
return $this->findPkComplex($key, $con); |
| 173 |
|
} else { |
| 174 |
|
return $this->findPkSimple($key, $con); |
| 175 |
|
} |
| 176 |
|
} |
| 177 |
|
|
| 178 |
|
/** |
| 179 |
|
* Find object by primary key using raw SQL to go fast. |
src/cli/Database/Base/SubscriptionQuery.php 1 location
|
@@ 191-211 (lines=21) @@
|
| 188 |
|
* |
| 189 |
|
* @return ChildSubscription|array|mixed the result, formatted by the current formatter |
| 190 |
|
*/ |
| 191 |
|
public function findPk($key, ConnectionInterface $con = null) |
| 192 |
|
{ |
| 193 |
|
if ($key === null) { |
| 194 |
|
return null; |
| 195 |
|
} |
| 196 |
|
if ((null !== ($obj = SubscriptionTableMap::getInstanceFromPool(null === $key || is_scalar($key) || is_callable([$key, '__toString']) ? (string) $key : $key))) && !$this->formatter) { |
| 197 |
|
// the object is already in the instance pool |
| 198 |
|
return $obj; |
| 199 |
|
} |
| 200 |
|
if ($con === null) { |
| 201 |
|
$con = Propel::getServiceContainer()->getReadConnection(SubscriptionTableMap::DATABASE_NAME); |
| 202 |
|
} |
| 203 |
|
$this->basePreSelect($con); |
| 204 |
|
if ($this->formatter || $this->modelAlias || $this->with || $this->select |
| 205 |
|
|| $this->selectColumns || $this->asColumns || $this->selectModifiers |
| 206 |
|
|| $this->map || $this->having || $this->joins) { |
| 207 |
|
return $this->findPkComplex($key, $con); |
| 208 |
|
} else { |
| 209 |
|
return $this->findPkSimple($key, $con); |
| 210 |
|
} |
| 211 |
|
} |
| 212 |
|
|
| 213 |
|
/** |
| 214 |
|
* Find object by primary key using raw SQL to go fast. |