Gilberto Albino Thu Jun 21 22:06:21 -0400 2012

Subject: Duplicated Entry

Hi!
I've just stared using php.activerecord and started frustrated!
When using the create method it inserts duplicated entries to table.
Any solution?


C. A. Beninati Fri Jun 22 16:46:56 -0400 2012

Could you post some code for context?

Gilberto Albino Fri Jun 22 23:35:27 -0400 2012

I' ve used the sample code on the project website and changed to suit my needs:

The configuration:
http://pastebin.com/1t7sfPVW

The model:
http://pastebin.com/wJwJax53

The call to create method:
http://pastebin.com/ST9gu5eC

And if I refresh the page I always have 2 records inserted at a time!

(1-2/2)