1
0
mirror of synced 2024-12-15 23:56:02 +03:00
doctrine2/manual/codes/Object relational mapping - Columns - Column aliases.php
2007-02-23 23:02:59 +00:00

13 lines
233 B
PHP

<?php
class Book extends Doctrine_Record
{
public function setTableDefinition()
{
$this->hasColumn('bookName as name', 'string');
}
}
$book = new Book();
$book->name = 'Some book';
$book->save();
?>