Uchwycić moment…

menic’s devBlog

Archive for the 'Propel' Category

“Update pole = pole+1″ in propel == POSSIBLE

Dzis całkiem przypadkiem znalazłem rozwiazanie tego problemu. W koncu troche bardziej rozbudowali dokumentacje i sie znalazło :) A jak to zrobić? Bardzo prosto i logicznie:

PHP:
  1. $o = SubCategoryPeer::retrieveByPK( $this->getRequestParameter( 'sub_cat_id' ) );
  2. $o->setQuestionCount( ( $o->getQuestionCount() + 1 ) );
  3. $o->save();

4 comments

Propel jest blee

2 comments

“Update pole = pole+1″ in propel == impossible

11 comments