Skip to content

Commit 98a3e97

Browse files
committed
add doctrine orm support
1 parent d2dd52d commit 98a3e97

27 files changed

+1941
-88
lines changed

.idea/composerJson.xml

Lines changed: 3 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/inspectionProfiles/Project_Default.xml

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

README.md

Lines changed: 30 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,36 @@
77
6. Explore :)
88

99

10+
---
11+
12+
1013
# Gulp
1114
## Watching changes
1215
By default, gulp is running in production mode. The "watching changes" feature is available in developer mode.
13-
If you want to run gulp in developer mode please add the following environment variable: `PION_EXMPL_DEBUG=1`.
16+
If you want to run gulp in developer mode please add the following environment variable: `PION_EXMPL_DEBUG=1`.
17+
18+
19+
# Docker
20+
### most used commands
21+
`docker-compose up --build` - build images & start containers.
22+
23+
`docker container ls` - show all containers (default shows just running).
24+
25+
`docker stop $(docker ps -q)` - stop all running containers.
26+
27+
`docker-compose stop` - stop all containers is current directory.
28+
29+
`docker rm $(docker ps -a -q -f status=exited)` - remove stopped containers.
30+
31+
`docker exec -it <container_id> bash` - get a bash shell in the container.
32+
33+
34+
# Doctrine
35+
# Command line tools
36+
https://www.doctrine-project.org/projects/doctrine-orm/en/2.6/reference/tools.html#command-overview
37+
38+
### most used commands (should be executed inside php container)
39+
`vendor/bin/doctrine orm:schema-tool:update --force` - processes the schema and update the database schema of EntityManager Storage Connection
40+
41+
### helpful guides
42+
https://www.doctrine-project.org/projects/doctrine-orm/en/current/tutorials/getting-started.html

docker-compose.yml

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,33 @@
11
version: '3'
22

33
services:
4+
mariadb:
5+
image: mariadb:10.3
6+
restart: always
7+
volumes:
8+
- ./mariadb:/var/lib/mysql
9+
environment:
10+
MYSQL_ROOT_PASSWORD: example_pwd
11+
12+
phpmyadmin:
13+
image: phpmyadmin/phpmyadmin
14+
links:
15+
- mariadb:db
16+
ports:
17+
- 8021:81
18+
environment:
19+
MYSQL_ROOT_PASSWORD: example_pwd
20+
depends_on:
21+
- mariadb
22+
423
php:
524
build:
625
context: ./
726
dockerfile: php/Dockerfile
827
volumes:
928
- ./web-app:/usr/share/nginx/html
29+
depends_on:
30+
- mariadb
1031

1132
composer:
1233
image: composer/composer:php7
@@ -24,8 +45,6 @@ services:
2445
volumes:
2546
- ./web-app:/web-app
2647
- ./gulp:/gulp
27-
depends_on:
28-
- php
2948
environment:
3049
- PION_EXMPL_DEBUG
3150

mariadb/aria_log.00000001

16 KB
Binary file not shown.

mariadb/aria_log_control

52 Bytes
Binary file not shown.

mariadb/ib_buffer_pool

Lines changed: 197 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,197 @@
1+
7,2
2+
4,3
3+
4,2
4+
4,1
5+
4,0
6+
3,6
7+
3,5
8+
3,4
9+
3,3
10+
3,2
11+
3,1
12+
3,0
13+
2,2
14+
1,2
15+
0,322
16+
0,243
17+
1,1
18+
1,3
19+
1,0
20+
7,1
21+
7,3
22+
7,0
23+
2,1
24+
2,3
25+
2,0
26+
0,9
27+
0,310
28+
0,305
29+
0,308
30+
0,304
31+
0,303
32+
0,302
33+
0,307
34+
0,12
35+
0,10
36+
0,8
37+
0,0
38+
0,300
39+
0,299
40+
0,298
41+
0,297
42+
0,296
43+
0,295
44+
0,294
45+
0,293
46+
0,292
47+
0,291
48+
0,290
49+
0,289
50+
0,288
51+
0,287
52+
0,286
53+
0,285
54+
0,284
55+
0,283
56+
0,282
57+
0,281
58+
0,280
59+
0,279
60+
0,278
61+
0,277
62+
0,276
63+
0,275
64+
0,274
65+
0,273
66+
0,272
67+
0,271
68+
0,270
69+
0,269
70+
0,268
71+
0,267
72+
0,266
73+
0,265
74+
0,264
75+
0,263
76+
0,262
77+
0,261
78+
0,260
79+
0,259
80+
0,258
81+
0,257
82+
0,256
83+
0,255
84+
0,254
85+
0,253
86+
0,252
87+
0,251
88+
0,250
89+
0,249
90+
0,248
91+
0,247
92+
0,246
93+
0,245
94+
0,244
95+
0,242
96+
0,241
97+
0,240
98+
0,239
99+
0,238
100+
0,237
101+
0,236
102+
0,235
103+
0,234
104+
0,233
105+
0,232
106+
0,231
107+
0,230
108+
0,229
109+
0,228
110+
0,227
111+
0,226
112+
0,225
113+
0,224
114+
0,223
115+
0,222
116+
0,221
117+
0,220
118+
0,219
119+
0,218
120+
0,217
121+
0,216
122+
0,215
123+
0,214
124+
0,213
125+
0,212
126+
0,211
127+
0,210
128+
0,209
129+
0,208
130+
0,207
131+
0,206
132+
0,205
133+
0,204
134+
0,203
135+
0,202
136+
0,333
137+
0,201
138+
0,332
139+
0,200
140+
0,331
141+
0,199
142+
0,330
143+
0,198
144+
0,329
145+
0,197
146+
0,196
147+
0,328
148+
0,195
149+
0,194
150+
0,193
151+
0,192
152+
0,327
153+
0,63
154+
0,326
155+
0,62
156+
0,325
157+
0,61
158+
0,323
159+
0,60
160+
0,321
161+
0,59
162+
0,324
163+
0,58
164+
0,57
165+
0,320
166+
0,56
167+
0,319
168+
0,55
169+
0,318
170+
0,54
171+
0,317
172+
0,53
173+
0,316
174+
0,52
175+
0,315
176+
0,51
177+
0,314
178+
0,50
179+
0,313
180+
0,49
181+
0,312
182+
0,48
183+
0,311
184+
0,47
185+
0,309
186+
0,46
187+
0,306
188+
0,45
189+
0,301
190+
0,6
191+
0,5
192+
0,1
193+
0,11
194+
0,4
195+
0,2
196+
0,3
197+
0,7

mariadb/ib_logfile0

48 MB
Binary file not shown.

mariadb/ib_logfile1

48 MB
Binary file not shown.

mariadb/ibdata1

12 MB
Binary file not shown.

0 commit comments

Comments
 (0)