1
0
mirror of synced 2024-12-15 07:36:03 +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();
?>