File tree 2 files changed +1
-21
lines changed
2 files changed +1
-21
lines changed Original file line number Diff line number Diff line change 1
1
# Nette ORM
2
2
3
3
![ GitHub branch checks state] ( https://img.shields.io/github/checks-status/fykosak/nette-orm/master )
4
- <img src =" https://img.shields.io/badge/coverage-87 %25-green " />
4
+ <img src =" https://img.shields.io/badge/coverage-97 %25-green " />
5
5
6
6
## install
7
7
Original file line number Diff line number Diff line change @@ -137,26 +137,6 @@ protected function checkType(AbstractModel $model): void {
137
137
}
138
138
}
139
139
140
- /**
141
- * Default data for the new model.
142
- * TODO is this really needed?
143
- * @return array
144
- * @deprecated
145
- */
146
- protected function getDefaultData (): array {
147
- if (!isset ($ this ->defaults )) {
148
- $ this ->defaults = [];
149
- foreach ($ this ->getColumnMetadata () as $ column ) {
150
- if ($ column ['nativetype ' ] == 'TIMESTAMP ' && isset ($ column ['default ' ])
151
- && !preg_match ('/^[0-9]{4}/ ' , $ column ['default ' ])) {
152
- continue ;
153
- }
154
- $ this ->defaults [$ column ['name ' ]] = isset ($ column ['default ' ]) ? $ column ['default ' ] : null ;
155
- }
156
- }
157
- return $ this ->defaults ;
158
- }
159
-
160
140
/**
161
141
* Omits array elements whose keys aren't columns in the table.
162
142
*
You can’t perform that action at this time.
0 commit comments