src/Driver/DC_Table_Utils.php
public static function createFromModel(Model $model)
    {
        $table = $model->getTable();

        $dc = new static($table);

        $dc->strTable = $model->getTable();
        $dc->activeRecord = $model;
        $dc->intId = $model->id;

        return $dc;
    }
public static function createFromModel(Model $model)
    {
        $table = $model->getTable();

        $dc = new static($table);

        $dc->strTable = $model->getTable();
        $dc->activeRecord = $model;
        $dc->intId = $model->id;

        return $dc;
    }
public static function createFromModel ( Model $ model ) { $ table = $ model -> getTable ( ) ; $ dc = new static ( $ table ) ; $ dc -> strTable = $ model -> getTable ( ) ; $ dc -> activeRecord = $ model ; $ dc -> intId = $ model -> id ; return $ dc ; }
Create a DataContainer instance from a given Model.

@param Model $model

@return static
Create a DataContainer instance from a given Model .