protected function generateVersionTable($name, Annotation $annotation, EntityDefinition &$entityMetadata)
    {
        $annotation = clone $annotation;
        $annotation->name ='ref_' . $annotation->name;
        $annotation->autoIncrement = false;

        // copy primary key to version table
        $entityMetadata['versionTable']['columns'][] = $this->generateColumn($name, $annotation);
    }
protected function generateVersionTable($name, Annotation $annotation, EntityDefinition &$entityMetadata)
    {
        $annotation = clone $annotation;
        $annotation->name ='ref_' . $annotation->name;
        $annotation->autoIncrement = false;

        // copy primary key to version table
        $entityMetadata['versionTable']['columns'][] = $this->generateColumn($name, $annotation);
    }
protected function generateVersionTable ( $ name , Annotation $ annotation , EntityDefinition & $ entityMetadata ) { $ annotation = clone $ annotation ; $ annotation -> name = 'ref_' . $ annotation -> name ; $ annotation -> autoIncrement = false ; // copy primary key to version table $ entityMetadata [ 'versionTable' ] [ 'columns' ] [ ] = $ this -> generateColumn ( $ name , $ annotation ) ; }
Generate versioning table.

@param string $name
@param \ProAI\Datamapper\Annotations\Annotation $annotation
@param \ProAI\Datamapper\Metadata\Definitions\Class $entityMetadata
@return void
Generate versioning table .