mirror of
https://github.com/standardebooks/web.git
synced 2025-07-07 15:20:32 -04:00
Remove DbConnection class in favor of fully-static and typed Db class
This commit is contained in:
parent
0a684facee
commit
e2e14a3551
6 changed files with 564 additions and 528 deletions
|
@ -2,7 +2,7 @@
|
|||
namespace Traits;
|
||||
|
||||
/**
|
||||
* Normally, the `DbConnection` class fills in an object itself, using reflection to decide on enums. Sometimes, we want to define an explicit `FromRow()` method on a class. This trait provides a default `FromRow()` method that assigns columns to object properties, and attemps to figure out enum types. The object can override this method if necessary.
|
||||
* Normally, the `Db` class fills in an object itself, using reflection to decide on enums. Sometimes, we want to define an explicit `FromRow()` method on a class. This trait provides a default `FromRow()` method that assigns columns to object properties, and attemps to figure out enum types. The object can override this method if necessary.
|
||||
*/
|
||||
trait FromRow{
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue