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

18 lines
384 B
PHP

<?php
class Page extends Doctrine_Record
{
public function setUp()
{
$this->hasMany('Bookmark as Bookmarks',
array('local' => 'id',
'foreign' => 'page_id'));
}
public function setTableDefinition()
{
$this->hasColumn('name', 'string', 30);
$this->hasColumn('url', 'string', 100);
}
}