DB.PHP - PHP ORM

Get registered table handler of class

By path to class

$database->path->to->class;

By string

$database->table('.path.to.class');

By object

$object = new \path\to\class();
$database->table($object);

Example:

$product = new \shop\product();
$database->add ($product);

$database->shop->product;
$database->table('.shop.product');
$database->table($product);