1
0
mirror of synced 2024-12-14 07:06:04 +03:00
doctrine2/models/Book.php

11 lines
278 B
PHP

<?php
class Book extends Doctrine_Record {
public function setUp() {
$this->ownsMany('Author', 'Author.book_id');
}
public function setTableDefinition() {
$this->hasColumn('user_id', 'integer');
$this->hasColumn('name', 'string',20);
}
}