Yii Framework Forum: Something anormal with save file behavior - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Something anormal with save file behavior Rate Topic: -----

#1 User is offline   AngĂ©llica Cardozo 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 137
  • Joined: 11-March 09

Posted 16 April 2010 - 03:27 PM

Hello, I have attached a behavior in my model Profile.

This behavior saves file to me when I call save();

However, it works for all rows except for one!

Example:

// WORKS
			$profile = Profile::model()->findByPk(4);
			$profile->attributes = $_POST['Profile'];
			$profile->save();


DOESN'T WORKS
			$profile = Profile::model()->findByPk(5);
			$profile->attributes = $_POST['Profile'];
			$profile->save();


Obs.: Yes, both pks exists in my table.

Can someone give me a help?
0

#2 User is offline   jonah 

  • Advanced Member
  • Yii
  • Group: Yii Dev Team
  • Posts: 733
  • Joined: 27-November 08
  • Location:California (US)

Posted 16 April 2010 - 04:05 PM

What is different in row 5 from row 4?
http://php-thoughts.cubedwater.com - my bloggings about Yii
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users