New name for Nette\Database\SelectionFactory
Notice: This thread is very old.
- David Grudl
- Nette Core | 8205
Nette\Database\SelectionFactory
is class that creates objects
Nette\Database\Table\Selection
, but I think is really not good
name. (BTW Nette\Database\Table
is not good name too).
Lets figure out some better names. Any ideas?
- Jan Tvrdík
- Nette guru | 2595
The first thing which has crossed my mind was
Nette\Database\Selector
, but I guess that would be even more
confusing.
- Milo
- Nette Core | 1283
Few quick ideas:
# Nette\Database
$database = new Nette\Database($connection, $reflection);
# Database\Selection
$selection = $database->selection('books');
# Database\Table
$database->table('users')->update();
$database->table('users')->insert();
$database->table('users')->delete();