Skip to content

Commit 76ad9f1

Browse files
committed
Remove unused method
1 parent 08198a6 commit 76ad9f1

File tree

2 files changed

+1
-21
lines changed

2 files changed

+1
-21
lines changed

Diff for: README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Nette ORM
22

33
![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" />
55

66
## install
77

Diff for: src/AbstractService.php

-20
Original file line numberDiff line numberDiff line change
@@ -137,26 +137,6 @@ protected function checkType(AbstractModel $model): void {
137137
}
138138
}
139139

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-
160140
/**
161141
* Omits array elements whose keys aren't columns in the table.
162142
*

0 commit comments

Comments
 (0)