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

This package is not auto-updated.

Last update: 2019-01-06 10:31:42 UTC


README

Minimum PHP Version License

Utility to read data of a table without having a model created

usage

  1. Set your connection

     \doctrine\Whalen::setConnConfig('default', [
         'host' => 'localhost',
         'user' => 'root',
         'pass' => '12345678',
         'dbname' => 'marca_eventos',
         'driver' => 'mysql'
     ]);
    
  2. Load an instance for the table wanted

     $table = \doctrine\Whalen::load('table_name');
    
  3. 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