protected function setAdditionalColumnProperties($name, Annotation &$annotation, array $propertyAnnotations, $embedded=false, $columnPrefix=false)
    {
        // scan for primary and versioned property
        foreach ($propertyAnnotations as $subAnnotation) {
            // set primary key
            if ($subAnnotation instanceof \ProAI\Datamapper\Annotations\Id) {
                $annotation->primary = true;
            }
            // set auto increment
            if ($subAnnotation instanceof \ProAI\Datamapper\Annotations\AutoIncrement) {
                $annotation->autoIncrement = true;
            }
            // set auto increment
            if ($subAnnotation instanceof \ProAI\Datamapper\Annotations\AutoUuid) {
                $annotation->autoUuid = true;
            }
            // set versioned
            if ($subAnnotation instanceof \ProAI\Datamapper\Annotations\Versioned) {
                $annotation->versioned = true;
            }
        }

        // set column name
        $annotation->name = $this->getColumnName($annotation->name ?: $name, $columnPrefix);
    }
protected function setAdditionalColumnProperties($name, Annotation &$annotation, array $propertyAnnotations, $embedded=false, $columnPrefix=false)
    {
        // scan for primary and versioned property
        foreach ($propertyAnnotations as $subAnnotation) {
            // set primary key
            if ($subAnnotation instanceof \ProAI\Datamapper\Annotations\Id) {
                $annotation->primary = true;
            }
            // set auto increment
            if ($subAnnotation instanceof \ProAI\Datamapper\Annotations\AutoIncrement) {
                $annotation->autoIncrement = true;
            }
            // set auto increment
            if ($subAnnotation instanceof \ProAI\Datamapper\Annotations\AutoUuid) {
                $annotation->autoUuid = true;
            }
            // set versioned
            if ($subAnnotation instanceof \ProAI\Datamapper\Annotations\Versioned) {
                $annotation->versioned = true;
            }
        }

        // set column name
        $annotation->name = $this->getColumnName($annotation->name ?: $name, $columnPrefix);
    }
protected function setAdditionalColumnProperties ( $ name , Annotation & $ annotation , array $ propertyAnnotations , $ embedded = false , $ columnPrefix = false ) { // scan for primary and versioned property foreach ( $ propertyAnnotations as $ subAnnotation ) { // set primary key if ( $ subAnnotation instanceof \ ProAI \ Datamapper \ Annotations \ Id ) { $ annotation -> primary = true ; } // set auto increment if ( $ subAnnotation instanceof \ ProAI \ Datamapper \ Annotations \ AutoIncrement ) { $ annotation -> autoIncrement = true ; } // set auto increment if ( $ subAnnotation instanceof \ ProAI \ Datamapper \ Annotations \ AutoUuid ) { $ annotation -> autoUuid = true ; } // set versioned if ( $ subAnnotation instanceof \ ProAI \ Datamapper \ Annotations \ Versioned ) { $ annotation -> versioned = true ; } } // set column name $ annotation -> name = $ this -> getColumnName ( $ annotation -> name ? : $ name , $ columnPrefix ) ; }
Set properties of column annotation related annotations.

@param string $name
@param \ProAI\Datamapper\Annotations\Annotation $annotation
@param array $propertyAnnotations
@param boolean $embedded
@param mixed $columnPrefix
@return void
Set properties of column annotation related annotations .