nette/nette — pull request #1073 by dg (2013-04-22 10:57:32+00:00)
Title: SelectionFactory: using and renaming

$connection->table() is just shortcut for using SelectionFactory (and little ugly shortcut, because there is circular dependency). Injecting database connection to (i.e.) presenter only because of method table() is smell. It is much better to inject SelectionFactory.

But name Nette\Database\Table\SelectionFactory::create() is not ideal, because

- create() is confusing in used DSL, better is table()
- Table\SelectionFactory maybe can be just SelectionFactory
- or TableFactory

?