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

14 lines
353 B
PHP

<?php
class Page extends Doctrine_Entity
{
public static function initMetadata($class)
{
$class->setColumn('name', 'string', 30);
$class->setColumn('url', 'string', 100);
$class->hasMany('Bookmark as Bookmarks',
array('local' => 'id',
'foreign' => 'page_id'));
}
}