public function save( $validate = true )
{
if( $this->isNewRecord )
{
// noveljuk a verzio-szamot ...
$this->revision = $this->revision+1;
return parent::save( $validate );
}
else
{
// ha a save fuggvenyt false-kent hivjuk meg
// akkor a modell atugorja az ellenorzest igy nem kell a
// a title egyenisegevel bajlodnunk, es igy noveljuk a verzio szamot
$newpage = new Page();
$newpage->attributes = $this->attributes;
$newpage->save(false);
return true;
}
}