@@ -24,7 +24,7 @@ |
||
24 | 24 | * SQLSelect constructor. |
25 | 25 | * |
26 | 26 | * @param PersistenceService $persistence |
27 | - * @param $entity |
|
27 | + * @param string $entity |
|
28 | 28 | */ |
29 | 29 | public function __construct(PersistenceService $persistence, $entity) { |
30 | 30 | parent::__construct($entity); |
@@ -14,6 +14,9 @@ |
||
14 | 14 | return []; |
15 | 15 | } |
16 | 16 | |
17 | + /** |
|
18 | + * @param string $tableName |
|
19 | + */ |
|
17 | 20 | public function getColsOfTable($tableName) { |
18 | 21 | return array_keys($this->getMetaData($tableName)); |
19 | 22 | } |
@@ -30,7 +30,7 @@ |
||
30 | 30 | $param = "p_" . count($this->params); |
31 | 31 | $this->params[$param] = $value; |
32 | 32 | // TODO check the ':' with NoSQL |
33 | - $condition = new Condition($col, $op, $value === null ? null : ":" . $param); |
|
33 | + $condition = new Condition($col, $op, $value === null ? null : ":" . $param); |
|
34 | 34 | if ($this->predicate != null) { |
35 | 35 | $method = $this->method; |
36 | 36 | $condition->$method($this->predicate); |
@@ -3,7 +3,6 @@ |
||
3 | 3 | namespace Softbox\Persistence\Core\SQL\Command; |
4 | 4 | |
5 | 5 | use Softbox\Persistence\Core\SQL\Builder\SQLConverter; |
6 | -use Softbox\Persistence\Core\SQL\PersistenceService; |
|
7 | 6 | use Softbox\Persistence\Core\UpdateBase; |
8 | 7 | |
9 | 8 | /** |