@@ -75,7 +75,7 @@ discard block |
||
| 75 | 75 | |
| 76 | 76 | public function begin() : bool |
| 77 | 77 | { |
| 78 | - return $this->transaction = true; |
|
| 78 | + return $this->transaction = true; |
|
| 79 | 79 | } |
| 80 | 80 | public function commit() : bool |
| 81 | 81 | { |
@@ -199,7 +199,7 @@ discard block |
||
| 199 | 199 | } |
| 200 | 200 | return $new; |
| 201 | 201 | }) |
| 202 | - as $relation |
|
| 202 | + as $relation |
|
| 203 | 203 | ) { |
| 204 | 204 | $relations[$relation['CONSTRAINT_NAME']]['table'] = $relation['TABLE_NAME']; |
| 205 | 205 | $relations[$relation['CONSTRAINT_NAME']]['keymap'][$primary[(int)$relation['POSITION']-1]] = $relation['COLUMN_NAME']; |
@@ -22,7 +22,7 @@ |
||
| 22 | 22 | parse_str($temp[1], $connection['opts']); |
| 23 | 23 | $connection['name'] = $temp[0]; |
| 24 | 24 | if (!is_file($connection['name']) && is_file('/'.$connection['name'])) { |
| 25 | - $connection['name'] = '/'.$connection['name']; |
|
| 25 | + $connection['name'] = '/'.$connection['name']; |
|
| 26 | 26 | } |
| 27 | 27 | $this->connection = $connection; |
| 28 | 28 | } |
@@ -60,7 +60,7 @@ discard block |
||
| 60 | 60 | /** |
| 61 | 61 | * Create an instance |
| 62 | 62 | * @param DBInterface $db the database connection |
| 63 | - * @param Table|string $table the name or definition of the main table in the query |
|
| 63 | + * @param Table $table the name or definition of the main table in the query |
|
| 64 | 64 | */ |
| 65 | 65 | public function __construct(DBInterface $db, $table) |
| 66 | 66 | { |
@@ -239,7 +239,7 @@ discard block |
||
| 239 | 239 | } |
| 240 | 240 | /** |
| 241 | 241 | * Group by a column (or columns) |
| 242 | - * @param string|array $column the column name (or names) to group by |
|
| 242 | + * @param string $column the column name (or names) to group by |
|
| 243 | 243 | * @return $this |
| 244 | 244 | */ |
| 245 | 245 | public function group($column) : TableQuery |
@@ -18,6 +18,9 @@ |
||
| 18 | 18 | protected $fetched = -1; |
| 19 | 19 | protected $iid = null; |
| 20 | 20 | |
| 21 | + /** |
|
| 22 | + * @param resource $statement |
|
| 23 | + */ |
|
| 21 | 24 | public function __construct($statement, $data, $iid, $charIn = null, $charOut = null) |
| 22 | 25 | { |
| 23 | 26 | $this->statement = $statement; |