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

8 lines
276 B
PHP

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