Hello everybody, I am new in this community and with Yii also.
Here is my problem:
I want to save in my database multiple rows. Before inserting each row in the database I want to check if a record with the identical title and date exists already.
So I used the exists function.
The problem:
The problem is that the exists function returns always the same value after the first loop no matter what I did.
(I tried the refresh function too)
I read documentation and searched the forums already but I couldnt find a proper solution.
I would also like to mention that it is not a problem of the object, the objects renews its values, the exists funtion doesn’t.