[eluser]rockstyle[/eluser]
Code:
stdClass Object ( [title] => Otwartapestka.pl [url] => http://otwartapestka.pl [description] => Zasiejemy cala Polske [forum_url] => http://otwartapeskta.info/viewtopic.php?v=23123 [updated_at] => 2010-02-07 12:10:24 )
And Model which obviously extends Doctrine_record
Code:
<?php
class Bank extends Doctrine_Record {
public function setTableDefinition() {
$this->hasColumn('title', 'string', 255);
$this->hasColumn('description', 'string', 255);
$this->hasColumn('category_id', 'integer', 4);
$this->hasColumn('user_id', 'integer', 4);
$this->hasColumn('url', 'string', 65535);
$this->hasColumn('logo_url', 'string', 65535);
$this->hasColumn('forum_url', 'string', 65535);
$this->hasColumn('reason', 'string', 255);
}
public function setUp() {
$this->actAs('Timestampable');
$this->hasOne('Category', array(
'local' => 'category_id',
'foreign' => 'id'
));
$this->hasOne('User', array(
'local' => 'user_id',
'foreign' => 'id'
));
}
}
Maybe I'll ask differently. What requirements has save(); function to be executed?