This forum is in READ-ONLY mode.
You can look around, but if you want to ask a new question, please use Stack Overflow.

queer problem with propel

Notes and reports about symfony 1.0.x stable

queer problem with propel

by skurson » Mon Dec 13, 2010 11:04 pm

Hello,

I'm new in Symfony so resolution maybe is simple. Function save() works only once after clearing cache ( I checked it in the database ), the second time it doesn't work, and i don't know why.

my action
Code: Select all
public function executeSubmitOFirmie(){
     $oRequest = $this->getRequest();
     
     $oSystemowa = SystemowaPeer::doSelectOne( new Criteria() );
     $oSystemowa->setSysOfirmie( $oRequest->getParameter('o_firmie') );
   $oSystemowa->save();
   $this->logMessage('wiadomosc');
   
   $this->redirect( 'administrator/oFirmie?zmiany=1' );
  }


databases.yml
Code: Select all
all:
  propel:
    class:      sfPropelDatabase
    param:
      dsn: mysql://root:password@localhost/swiat_wizytowek
      encoding: utf8
      dbname: swiat_wizytowek


propel.ini
Code: Select all
propel.project             = swiat_wizytowek
propel.database            = mysql
propel.database.createUrl  = mysql://root:password@localhost
propel.database.url        = mysql://root:password@localhost/swiat_wizytowek
propel.database.encoding   = utf8

;mysql options
propel.mysql.tableType     = InnoDB
...
...
...
propel.output.dir              = C:\xampp\htdocs\swiat_wizytowek\


model is correct. I will be grateful for the help ;)
skurson
Junior Member
 
Posts: 1
Joined: Mon Dec 13, 2010 10:46 pm