gnu-social/src/Util/SchemaDefDriver.php

16 lines
358 B
PHP
Raw Normal View History

<?php
namespace App\Util;
use Doctrine\Persistence\Mapping\ClassMetadata;
use Doctrine\Persistence\Mapping\Driver\StaticPHPDriver;
class SchemaDefDriver extends StaticPHPDriver
{
public function loadMetadataForClass($className, ClassMetadata $metadata)
{
$schema = $className::schemaDef();
$metadata->addField($schema[0]);
}
}