brunnofoggia / doctrine-whalen
This package is abandoned and no longer maintained.
No replacement package was suggested.
Utility to read data of a table without having a model created
1.0.0
2017-01-23 20:11 UTC
Requires
- brunnofoggia/doctrine-dashes: ^1.4.0
- brunnofoggia/doctrine-rhino: ^1.0.0
This package is not auto-updated.
Last update: 2019-01-06 10:31:42 UTC
README
Utility to read data of a table without having a model created
usage
Set your connection
\doctrine\Whalen::setConnConfig('default', [ 'host' => 'localhost', 'user' => 'root', 'pass' => '12345678', 'dbname' => 'marca_eventos', 'driver' => 'mysql' ]);
Load an instance for the table wanted
$table = \doctrine\Whalen::load('table_name');
Try to read a record
$pk = 1; $table->get($pk);
More details about the methods available to read/persist data read are available in Dashes docs