I've thought to do
Config::Inst()->get('\MyNamespace\IsWellNamed\MyClass', 'table_name'); but that isn't fool proof. Was hoping for an existing method within the framework to attain table name.
yeah i couldnt see one on a quick search
$tableName = $dataObjectSchema->tableName($dataClass);
$dbSchema = DB::get_schema();
$dataObjectSchema = DataObject::getSchema();
Nice find @phyzical.
Lol, this is from documentation of the
"Note that this does not confirm a table actually exists (or should exist), but returns the name that would be used if this table did exist."
It definitely returns something, at least.
yeah it proably just allows for access to that property, as its used during dev_build