@@ -16,6 +16,7 @@ |
||
16 | 16 | * Computes the name of the table based on the DAO plural module name. |
17 | 17 | * |
18 | 18 | * @param AbstractZohoDao $dao |
19 | + * @param string $prefix |
|
19 | 20 | * |
20 | 21 | * @return string |
21 | 22 | */ |
@@ -49,7 +49,7 @@ |
||
49 | 49 | $localDelete = $schema->createTable('local_delete'); |
50 | 50 | $localDelete->addColumn('table_name', 'string', ['length' => 100]); |
51 | 51 | $localDelete->addColumn('uid', 'integer'); |
52 | - $localDelete->addColumn('id', 'string', ['length' => 100]); |
|
52 | + $localDelete->addColumn('id', 'string', ['length' => 100]); |
|
53 | 53 | $localDelete->setPrimaryKey(array('table_name', 'uid')); |
54 | 54 | $localDelete->addUniqueIndex(['id', 'table_name']); |
55 | 55 |
@@ -77,7 +77,7 @@ discard block |
||
77 | 77 | $this->zohoDatabaseModelSync = $zohoDatabaseModelSync; |
78 | 78 | $this->zohoDatabaseCopier = $zohoDatabaseCopier; |
79 | 79 | $this->zohoDatabaseSync = $zohoDatabaseSync; |
80 | - $this->zohoEntitiesGenerator = $zohoEntitiesGenerator; |
|
80 | + $this->zohoEntitiesGenerator = $zohoEntitiesGenerator; |
|
81 | 81 | $this->zohoClient = $zohoClient; |
82 | 82 | $this->pathZohoDaos = $pathZohoDaos; |
83 | 83 | $this->namespaceZohoDaos = $namespaceZohoDaos; |
@@ -153,7 +153,7 @@ discard block |
||
153 | 153 | private function regenerateZohoDao(InputInterface $input, OutputInterface $output) |
154 | 154 | { |
155 | 155 | $logger = new ConsoleLogger($output); |
156 | - $zohoModules = $this->zohoEntitiesGenerator->generateAll($this->pathZohoDaos,$this->namespaceZohoDaos); |
|
156 | + $zohoModules = $this->zohoEntitiesGenerator->generateAll($this->pathZohoDaos, $this->namespaceZohoDaos); |
|
157 | 157 | foreach ($zohoModules as $daoFullClassName) { |
158 | 158 | $zohoDao = new $daoFullClassName($this->zohoClient); |
159 | 159 | $this->zohoDaos [] = $zohoDao; |
@@ -126,7 +126,6 @@ |
||
126 | 126 | |
127 | 127 | /** |
128 | 128 | * Run he sync Db command. |
129 | - * @param InputInterface $input |
|
130 | 129 | * @param OutputInterface $output |
131 | 130 | */ |
132 | 131 | private function syncDb(OutputInterface $output){ |
@@ -82,13 +82,13 @@ |
||
82 | 82 | $existedColumns = $this->connection->getSchemaManager()->listTableColumns($tableName); |
83 | 83 | $existLastActivityTime = false; |
84 | 84 | foreach ($existedColumns as $existedColumn) { |
85 | - if($existedColumn->getName() == 'lastActivityTime'){ |
|
85 | + if ($existedColumn->getName() == 'lastActivityTime') { |
|
86 | 86 | $existLastActivityTime = true; |
87 | 87 | break; |
88 | 88 | } |
89 | 89 | } |
90 | 90 | // To avoid checking this column when it is not used in a table. |
91 | - if($existLastActivityTime){ |
|
91 | + if ($existLastActivityTime) { |
|
92 | 92 | /////'SHOW COLUMNS FROM '.$tableName.' LIKE `lastActivityTime`'); |
93 | 93 | // Let's get the last modification date: |
94 | 94 | $lastActivityTime = $this->connection->fetchColumn('SELECT MAX(lastActivityTime) FROM '.$tableName); |