dnadesign / silverstripe-elemental-subsites

BSD 3-Clause "New" or "Revised" License
0 stars 6 forks source link

Use DataObjectSchema to retrieve BaseElement table name #2

Closed robbieaverill closed 6 years ago

robbieaverill commented 6 years ago

See https://github.com/dnadesign/silverstripe-elemental-subsites/commit/09844fe54f869a012dd8313202878fa4a8e00faf#diff-98d52a2200c54cbd348bf75d5b917e56R37

We should use DataObject::getSchema()->tableName(BaseElement::class) instead of embedding Element directly.

raissanorth commented 6 years ago

PR at https://github.com/dnadesign/silverstripe-elemental-subsites/pull/6