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

18 lines
384 B
PHP
Raw Normal View History

<?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);
}
}