1
0
mirror of synced 2024-12-13 14:56:01 +03:00
doctrine2/models/CPK_Test.php

8 lines
288 B
PHP

<?php
class CPK_Test extends Doctrine_Record {
public static function initMetadata($class) {
$class->setColumn('name', 'string', 255);
$class->hasMany('CPK_Test2 as Test', array('local' => 'test_id', 'foreign' => 'test2_id', 'refClass' => 'CPK_Association'));
}
}