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

11 lines
278 B
PHP
Raw Normal View History

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