src/Arseniew/Silex/Application/IdiormTrait.php
public function getModel($table, $connection = null)
    {
        if (!$connection) {
            return $this['idiorm.db']->for_table($table);
        } else {
            return $this['idiorm.dbs'][$connection]->for_table($table);
        }
    }
public function getModel($table, $connection = null)
    {
        if (!$connection) {
            return $this['idiorm.db']->for_table($table);
        } else {
            return $this['idiorm.dbs'][$connection]->for_table($table);
        }
    }
Returns configured Idiorm instance

@param string $table      table Name
@param string $connection Connection name

@return \ORM Idiorm instance