1
0
mirror of synced 2024-12-14 23:26:04 +03:00
doctrine2/manual/codes/Getting started - Setting table definition - Column aliases.php

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