@@ -50,9 +50,9 @@ discard block |
||
50 | 50 | public function fetchOneBy(array $where = []) |
51 | 51 | { |
52 | 52 | $queryBuilder = $this->connection->createQueryBuilder() |
53 | - ->select('*') |
|
54 | - ->from(self::TABLE) |
|
55 | - ->setMaxResults(1); |
|
53 | + ->select('*') |
|
54 | + ->from(self::TABLE) |
|
55 | + ->setMaxResults(1); |
|
56 | 56 | |
57 | 57 | if (count($where) > 0) { |
58 | 58 | foreach ($where as $column => $value) { |
@@ -78,8 +78,8 @@ discard block |
||
78 | 78 | public function fetchBy(array $where = []) |
79 | 79 | { |
80 | 80 | $queryBuilder = $this->connection->createQueryBuilder() |
81 | - ->select('*') |
|
82 | - ->from(self::TABLE); |
|
81 | + ->select('*') |
|
82 | + ->from(self::TABLE); |
|
83 | 83 | |
84 | 84 | if (count($where) > 0) { |
85 | 85 | foreach ($where as $column => $value) { |
@@ -121,7 +121,7 @@ discard block |
||
121 | 121 | $databaseArray |
122 | 122 | ); |
123 | 123 | |
124 | - $entity->id = (int) $this->connection->lastInsertId(); |
|
124 | + $entity->id = (int)$this->connection->lastInsertId(); |
|
125 | 125 | |
126 | 126 | return $entity; |
127 | 127 | } |
@@ -202,24 +202,24 @@ discard block |
||
202 | 202 | public function getEntityFromDatabaseArray(array $data) |
203 | 203 | { |
204 | 204 | $entity = new GeoCacheAttribEntity(); |
205 | - $entity->id = (int) $data['id']; |
|
206 | - $entity->name = (string) $data['name']; |
|
207 | - $entity->icon = (string) $data['icon']; |
|
208 | - $entity->transId = (int) $data['trans_id']; |
|
209 | - $entity->groupId = (int) $data['group_id']; |
|
210 | - $entity->selectable = (int) $data['selectable']; |
|
211 | - $entity->category = (int) $data['category']; |
|
212 | - $entity->searchDefault = (int) $data['search_default']; |
|
213 | - $entity->default = (int) $data['default']; |
|
214 | - $entity->iconLarge = (string) $data['icon_large']; |
|
215 | - $entity->iconNo = (string) $data['icon_no']; |
|
216 | - $entity->iconUndef = (string) $data['icon_undef']; |
|
217 | - $entity->htmlDesc = (string) $data['html_desc']; |
|
218 | - $entity->htmlDescTransId = (int) $data['html_desc_trans_id']; |
|
219 | - $entity->hidden = (int) $data['hidden']; |
|
220 | - $entity->gcId = (int) $data['gc_id']; |
|
221 | - $entity->gcInc = (int) $data['gc_inc']; |
|
222 | - $entity->gcName = (string) $data['gc_name']; |
|
205 | + $entity->id = (int)$data['id']; |
|
206 | + $entity->name = (string)$data['name']; |
|
207 | + $entity->icon = (string)$data['icon']; |
|
208 | + $entity->transId = (int)$data['trans_id']; |
|
209 | + $entity->groupId = (int)$data['group_id']; |
|
210 | + $entity->selectable = (int)$data['selectable']; |
|
211 | + $entity->category = (int)$data['category']; |
|
212 | + $entity->searchDefault = (int)$data['search_default']; |
|
213 | + $entity->default = (int)$data['default']; |
|
214 | + $entity->iconLarge = (string)$data['icon_large']; |
|
215 | + $entity->iconNo = (string)$data['icon_no']; |
|
216 | + $entity->iconUndef = (string)$data['icon_undef']; |
|
217 | + $entity->htmlDesc = (string)$data['html_desc']; |
|
218 | + $entity->htmlDescTransId = (int)$data['html_desc_trans_id']; |
|
219 | + $entity->hidden = (int)$data['hidden']; |
|
220 | + $entity->gcId = (int)$data['gc_id']; |
|
221 | + $entity->gcInc = (int)$data['gc_inc']; |
|
222 | + $entity->gcName = (string)$data['gc_name']; |
|
223 | 223 | |
224 | 224 | return $entity; |
225 | 225 | } |
@@ -50,9 +50,9 @@ discard block |
||
50 | 50 | public function fetchOneBy(array $where = []) |
51 | 51 | { |
52 | 52 | $queryBuilder = $this->connection->createQueryBuilder() |
53 | - ->select('*') |
|
54 | - ->from(self::TABLE) |
|
55 | - ->setMaxResults(1); |
|
53 | + ->select('*') |
|
54 | + ->from(self::TABLE) |
|
55 | + ->setMaxResults(1); |
|
56 | 56 | |
57 | 57 | if (count($where) > 0) { |
58 | 58 | foreach ($where as $column => $value) { |
@@ -78,8 +78,8 @@ discard block |
||
78 | 78 | public function fetchBy(array $where = []) |
79 | 79 | { |
80 | 80 | $queryBuilder = $this->connection->createQueryBuilder() |
81 | - ->select('*') |
|
82 | - ->from(self::TABLE); |
|
81 | + ->select('*') |
|
82 | + ->from(self::TABLE); |
|
83 | 83 | |
84 | 84 | if (count($where) > 0) { |
85 | 85 | foreach ($where as $column => $value) { |
@@ -121,7 +121,7 @@ discard block |
||
121 | 121 | $databaseArray |
122 | 122 | ); |
123 | 123 | |
124 | - $entity->id = (int) $this->connection->lastInsertId(); |
|
124 | + $entity->id = (int)$this->connection->lastInsertId(); |
|
125 | 125 | |
126 | 126 | return $entity; |
127 | 127 | } |
@@ -189,10 +189,10 @@ discard block |
||
189 | 189 | public function getEntityFromDatabaseArray(array $data) |
190 | 190 | { |
191 | 191 | $entity = new NpaAreasEntity(); |
192 | - $entity->id = (int) $data['id']; |
|
193 | - $entity->typeId = (string) $data['type_id']; |
|
194 | - $entity->exclude = (int) $data['exclude']; |
|
195 | - $entity->name = (string) $data['name']; |
|
192 | + $entity->id = (int)$data['id']; |
|
193 | + $entity->typeId = (string)$data['type_id']; |
|
194 | + $entity->exclude = (int)$data['exclude']; |
|
195 | + $entity->name = (string)$data['name']; |
|
196 | 196 | $entity->shape = $data['shape']; |
197 | 197 | |
198 | 198 | return $entity; |
@@ -50,9 +50,9 @@ discard block |
||
50 | 50 | public function fetchOneBy(array $where = []) |
51 | 51 | { |
52 | 52 | $queryBuilder = $this->connection->createQueryBuilder() |
53 | - ->select('*') |
|
54 | - ->from(self::TABLE) |
|
55 | - ->setMaxResults(1); |
|
53 | + ->select('*') |
|
54 | + ->from(self::TABLE) |
|
55 | + ->setMaxResults(1); |
|
56 | 56 | |
57 | 57 | if (count($where) > 0) { |
58 | 58 | foreach ($where as $column => $value) { |
@@ -78,8 +78,8 @@ discard block |
||
78 | 78 | public function fetchBy(array $where = []) |
79 | 79 | { |
80 | 80 | $queryBuilder = $this->connection->createQueryBuilder() |
81 | - ->select('*') |
|
82 | - ->from(self::TABLE); |
|
81 | + ->select('*') |
|
82 | + ->from(self::TABLE); |
|
83 | 83 | |
84 | 84 | if (count($where) > 0) { |
85 | 85 | foreach ($where as $column => $value) { |
@@ -121,7 +121,7 @@ discard block |
||
121 | 121 | $databaseArray |
122 | 122 | ); |
123 | 123 | |
124 | - $entity->cacheId = (int) $this->connection->lastInsertId(); |
|
124 | + $entity->cacheId = (int)$this->connection->lastInsertId(); |
|
125 | 125 | |
126 | 126 | return $entity; |
127 | 127 | } |
@@ -187,9 +187,9 @@ discard block |
||
187 | 187 | public function getEntityFromDatabaseArray(array $data) |
188 | 188 | { |
189 | 189 | $entity = new GeoCacheAdoptionEntity(); |
190 | - $entity->cacheId = (int) $data['cache_id']; |
|
191 | - $entity->userId = (int) $data['user_id']; |
|
192 | - $entity->dateCreated = new DateTime($data['date_created']); |
|
190 | + $entity->cacheId = (int)$data['cache_id']; |
|
191 | + $entity->userId = (int)$data['user_id']; |
|
192 | + $entity->dateCreated = new DateTime($data['date_created']); |
|
193 | 193 | |
194 | 194 | return $entity; |
195 | 195 | } |
@@ -50,9 +50,9 @@ discard block |
||
50 | 50 | public function fetchOneBy(array $where = []) |
51 | 51 | { |
52 | 52 | $queryBuilder = $this->connection->createQueryBuilder() |
53 | - ->select('*') |
|
54 | - ->from(self::TABLE) |
|
55 | - ->setMaxResults(1); |
|
53 | + ->select('*') |
|
54 | + ->from(self::TABLE) |
|
55 | + ->setMaxResults(1); |
|
56 | 56 | |
57 | 57 | if (count($where) > 0) { |
58 | 58 | foreach ($where as $column => $value) { |
@@ -78,8 +78,8 @@ discard block |
||
78 | 78 | public function fetchBy(array $where = []) |
79 | 79 | { |
80 | 80 | $queryBuilder = $this->connection->createQueryBuilder() |
81 | - ->select('*') |
|
82 | - ->from(self::TABLE); |
|
81 | + ->select('*') |
|
82 | + ->from(self::TABLE); |
|
83 | 83 | |
84 | 84 | if (count($where) > 0) { |
85 | 85 | foreach ($where as $column => $value) { |
@@ -121,7 +121,7 @@ discard block |
||
121 | 121 | $databaseArray |
122 | 122 | ); |
123 | 123 | |
124 | - $entity->id = (int) $this->connection->lastInsertId(); |
|
124 | + $entity->id = (int)$this->connection->lastInsertId(); |
|
125 | 125 | |
126 | 126 | return $entity; |
127 | 127 | } |
@@ -188,10 +188,10 @@ discard block |
||
188 | 188 | public function getEntityFromDatabaseArray(array $data) |
189 | 189 | { |
190 | 190 | $entity = new AttributeGroupsEntity(); |
191 | - $entity->id = (int) $data['id']; |
|
192 | - $entity->categoryId = (int) $data['category_id']; |
|
193 | - $entity->name = (string) $data['name']; |
|
194 | - $entity->transId = (int) $data['trans_id']; |
|
191 | + $entity->id = (int)$data['id']; |
|
192 | + $entity->categoryId = (int)$data['category_id']; |
|
193 | + $entity->name = (string)$data['name']; |
|
194 | + $entity->transId = (int)$data['trans_id']; |
|
195 | 195 | |
196 | 196 | return $entity; |
197 | 197 | } |
@@ -50,9 +50,9 @@ discard block |
||
50 | 50 | public function fetchOneBy(array $where = []) |
51 | 51 | { |
52 | 52 | $queryBuilder = $this->connection->createQueryBuilder() |
53 | - ->select('*') |
|
54 | - ->from(self::TABLE) |
|
55 | - ->setMaxResults(1); |
|
53 | + ->select('*') |
|
54 | + ->from(self::TABLE) |
|
55 | + ->setMaxResults(1); |
|
56 | 56 | |
57 | 57 | if (count($where) > 0) { |
58 | 58 | foreach ($where as $column => $value) { |
@@ -78,8 +78,8 @@ discard block |
||
78 | 78 | public function fetchBy(array $where = []) |
79 | 79 | { |
80 | 80 | $queryBuilder = $this->connection->createQueryBuilder() |
81 | - ->select('*') |
|
82 | - ->from(self::TABLE); |
|
81 | + ->select('*') |
|
82 | + ->from(self::TABLE); |
|
83 | 83 | |
84 | 84 | if (count($where) > 0) { |
85 | 85 | foreach ($where as $column => $value) { |
@@ -121,7 +121,7 @@ discard block |
||
121 | 121 | $databaseArray |
122 | 122 | ); |
123 | 123 | |
124 | - $entity->id = (int) $this->connection->lastInsertId(); |
|
124 | + $entity->id = (int)$this->connection->lastInsertId(); |
|
125 | 125 | |
126 | 126 | return $entity; |
127 | 127 | } |
@@ -186,8 +186,8 @@ discard block |
||
186 | 186 | public function getEntityFromDatabaseArray(array $data) |
187 | 187 | { |
188 | 188 | $entity = new OkapiClogEntity(); |
189 | - $entity->id = (int) $data['id']; |
|
190 | - $entity->data = (string) $data['data']; |
|
189 | + $entity->id = (int)$data['id']; |
|
190 | + $entity->data = (string)$data['data']; |
|
191 | 191 | |
192 | 192 | return $entity; |
193 | 193 | } |
@@ -50,9 +50,9 @@ discard block |
||
50 | 50 | public function fetchOneBy(array $where = []) |
51 | 51 | { |
52 | 52 | $queryBuilder = $this->connection->createQueryBuilder() |
53 | - ->select('*') |
|
54 | - ->from(self::TABLE) |
|
55 | - ->setMaxResults(1); |
|
53 | + ->select('*') |
|
54 | + ->from(self::TABLE) |
|
55 | + ->setMaxResults(1); |
|
56 | 56 | |
57 | 57 | if (count($where) > 0) { |
58 | 58 | foreach ($where as $column => $value) { |
@@ -78,8 +78,8 @@ discard block |
||
78 | 78 | public function fetchBy(array $where = []) |
79 | 79 | { |
80 | 80 | $queryBuilder = $this->connection->createQueryBuilder() |
81 | - ->select('*') |
|
82 | - ->from(self::TABLE); |
|
81 | + ->select('*') |
|
82 | + ->from(self::TABLE); |
|
83 | 83 | |
84 | 84 | if (count($where) > 0) { |
85 | 85 | foreach ($where as $column => $value) { |
@@ -121,7 +121,7 @@ discard block |
||
121 | 121 | $databaseArray |
122 | 122 | ); |
123 | 123 | |
124 | - $entity->lang = (int) $this->connection->lastInsertId(); |
|
124 | + $entity->lang = (int)$this->connection->lastInsertId(); |
|
125 | 125 | |
126 | 126 | return $entity; |
127 | 127 | } |
@@ -186,8 +186,8 @@ discard block |
||
186 | 186 | public function getEntityFromDatabaseArray(array $data) |
187 | 187 | { |
188 | 188 | $entity = new LanguagesListDefaultEntity(); |
189 | - $entity->lang = (string) $data['lang']; |
|
190 | - $entity->show = (string) $data['show']; |
|
189 | + $entity->lang = (string)$data['lang']; |
|
190 | + $entity->show = (string)$data['show']; |
|
191 | 191 | |
192 | 192 | return $entity; |
193 | 193 | } |
@@ -50,9 +50,9 @@ discard block |
||
50 | 50 | public function fetchOneBy(array $where = []) |
51 | 51 | { |
52 | 52 | $queryBuilder = $this->connection->createQueryBuilder() |
53 | - ->select('*') |
|
54 | - ->from(self::TABLE) |
|
55 | - ->setMaxResults(1); |
|
53 | + ->select('*') |
|
54 | + ->from(self::TABLE) |
|
55 | + ->setMaxResults(1); |
|
56 | 56 | |
57 | 57 | if (count($where) > 0) { |
58 | 58 | foreach ($where as $column => $value) { |
@@ -78,8 +78,8 @@ discard block |
||
78 | 78 | public function fetchBy(array $where = []) |
79 | 79 | { |
80 | 80 | $queryBuilder = $this->connection->createQueryBuilder() |
81 | - ->select('*') |
|
82 | - ->from(self::TABLE); |
|
81 | + ->select('*') |
|
82 | + ->from(self::TABLE); |
|
83 | 83 | |
84 | 84 | if (count($where) > 0) { |
85 | 85 | foreach ($where as $column => $value) { |
@@ -121,7 +121,7 @@ discard block |
||
121 | 121 | $databaseArray |
122 | 122 | ); |
123 | 123 | |
124 | - $entity->cacheListId = (int) $this->connection->lastInsertId(); |
|
124 | + $entity->cacheListId = (int)$this->connection->lastInsertId(); |
|
125 | 125 | |
126 | 126 | return $entity; |
127 | 127 | } |
@@ -186,8 +186,8 @@ discard block |
||
186 | 186 | public function getEntityFromDatabaseArray(array $data) |
187 | 187 | { |
188 | 188 | $entity = new GeoCacheListWatchesEntity(); |
189 | - $entity->cacheListId = (int) $data['cache_list_id']; |
|
190 | - $entity->userId = (int) $data['user_id']; |
|
189 | + $entity->cacheListId = (int)$data['cache_list_id']; |
|
190 | + $entity->userId = (int)$data['user_id']; |
|
191 | 191 | |
192 | 192 | return $entity; |
193 | 193 | } |
@@ -50,9 +50,9 @@ discard block |
||
50 | 50 | public function fetchOneBy(array $where = []) |
51 | 51 | { |
52 | 52 | $queryBuilder = $this->connection->createQueryBuilder() |
53 | - ->select('*') |
|
54 | - ->from(self::TABLE) |
|
55 | - ->setMaxResults(1); |
|
53 | + ->select('*') |
|
54 | + ->from(self::TABLE) |
|
55 | + ->setMaxResults(1); |
|
56 | 56 | |
57 | 57 | if (count($where) > 0) { |
58 | 58 | foreach ($where as $column => $value) { |
@@ -78,8 +78,8 @@ discard block |
||
78 | 78 | public function fetchBy(array $where = []) |
79 | 79 | { |
80 | 80 | $queryBuilder = $this->connection->createQueryBuilder() |
81 | - ->select('*') |
|
82 | - ->from(self::TABLE); |
|
81 | + ->select('*') |
|
82 | + ->from(self::TABLE); |
|
83 | 83 | |
84 | 84 | if (count($where) > 0) { |
85 | 85 | foreach ($where as $column => $value) { |
@@ -121,7 +121,7 @@ discard block |
||
121 | 121 | $databaseArray |
122 | 122 | ); |
123 | 123 | |
124 | - $entity->id = (int) $this->connection->lastInsertId(); |
|
124 | + $entity->id = (int)$this->connection->lastInsertId(); |
|
125 | 125 | |
126 | 126 | return $entity; |
127 | 127 | } |
@@ -199,19 +199,19 @@ discard block |
||
199 | 199 | { |
200 | 200 | $entity = new SysMenuEntity(); |
201 | 201 | $entity->id = $data['id']; |
202 | - $entity->idString = (string) $data['id_string']; |
|
203 | - $entity->title = (string) $data['title']; |
|
204 | - $entity->titleTransId = (int) $data['title_trans_id']; |
|
205 | - $entity->menustring = (string) $data['menustring']; |
|
206 | - $entity->menustringTransId = (int) $data['menustring_trans_id']; |
|
207 | - $entity->access = (int) $data['access']; |
|
208 | - $entity->href = (string) $data['href']; |
|
209 | - $entity->visible = (int) $data['visible']; |
|
202 | + $entity->idString = (string)$data['id_string']; |
|
203 | + $entity->title = (string)$data['title']; |
|
204 | + $entity->titleTransId = (int)$data['title_trans_id']; |
|
205 | + $entity->menustring = (string)$data['menustring']; |
|
206 | + $entity->menustringTransId = (int)$data['menustring_trans_id']; |
|
207 | + $entity->access = (int)$data['access']; |
|
208 | + $entity->href = (string)$data['href']; |
|
209 | + $entity->visible = (int)$data['visible']; |
|
210 | 210 | $entity->parent = $data['parent']; |
211 | - $entity->position = (int) $data['position']; |
|
212 | - $entity->color = (string) $data['color']; |
|
213 | - $entity->sitemap = (int) $data['sitemap']; |
|
214 | - $entity->onlyIfParent = (int) $data['only_if_parent']; |
|
211 | + $entity->position = (int)$data['position']; |
|
212 | + $entity->color = (string)$data['color']; |
|
213 | + $entity->sitemap = (int)$data['sitemap']; |
|
214 | + $entity->onlyIfParent = (int)$data['only_if_parent']; |
|
215 | 215 | |
216 | 216 | return $entity; |
217 | 217 | } |
@@ -50,9 +50,9 @@ discard block |
||
50 | 50 | public function fetchOneBy(array $where = []) |
51 | 51 | { |
52 | 52 | $queryBuilder = $this->connection->createQueryBuilder() |
53 | - ->select('*') |
|
54 | - ->from(self::TABLE) |
|
55 | - ->setMaxResults(1); |
|
53 | + ->select('*') |
|
54 | + ->from(self::TABLE) |
|
55 | + ->setMaxResults(1); |
|
56 | 56 | |
57 | 57 | if (count($where) > 0) { |
58 | 58 | foreach ($where as $column => $value) { |
@@ -78,8 +78,8 @@ discard block |
||
78 | 78 | public function fetchBy(array $where = []) |
79 | 79 | { |
80 | 80 | $queryBuilder = $this->connection->createQueryBuilder() |
81 | - ->select('*') |
|
82 | - ->from(self::TABLE); |
|
81 | + ->select('*') |
|
82 | + ->from(self::TABLE); |
|
83 | 83 | |
84 | 84 | if (count($where) > 0) { |
85 | 85 | foreach ($where as $column => $value) { |
@@ -121,7 +121,7 @@ discard block |
||
121 | 121 | $databaseArray |
122 | 122 | ); |
123 | 123 | |
124 | - $entity->locId = (int) $this->connection->lastInsertId(); |
|
124 | + $entity->locId = (int)$this->connection->lastInsertId(); |
|
125 | 125 | |
126 | 126 | return $entity; |
127 | 127 | } |
@@ -192,14 +192,14 @@ discard block |
||
192 | 192 | public function getEntityFromDatabaseArray(array $data) |
193 | 193 | { |
194 | 194 | $entity = new GeodbIntdataEntity(); |
195 | - $entity->locId = (int) $data['loc_id']; |
|
196 | - $entity->intVal = (int) $data['int_val']; |
|
197 | - $entity->intType = (int) $data['int_type']; |
|
198 | - $entity->intSubtype = (int) $data['int_subtype']; |
|
199 | - $entity->validSince = new DateTime($data['valid_since']); |
|
200 | - $entity->dateTypeSince = (int) $data['date_type_since']; |
|
201 | - $entity->validUntil = new DateTime($data['valid_until']); |
|
202 | - $entity->dateTypeUntil = (int) $data['date_type_until']; |
|
195 | + $entity->locId = (int)$data['loc_id']; |
|
196 | + $entity->intVal = (int)$data['int_val']; |
|
197 | + $entity->intType = (int)$data['int_type']; |
|
198 | + $entity->intSubtype = (int)$data['int_subtype']; |
|
199 | + $entity->validSince = new DateTime($data['valid_since']); |
|
200 | + $entity->dateTypeSince = (int)$data['date_type_since']; |
|
201 | + $entity->validUntil = new DateTime($data['valid_until']); |
|
202 | + $entity->dateTypeUntil = (int)$data['date_type_until']; |
|
203 | 203 | |
204 | 204 | return $entity; |
205 | 205 | } |