![]() |
I am using entities. I am checking to see if the new post data has changed when compared to the database. I have about 223 records. I have tested my code and everthing works, however, for one record, it always shows it has changed. I
PHP Code: if ($OsmSkiResort->hasChanged()){ So the one record that shows as "hasChanged" value of print_r() is below; https://www.google.com/search?q=%E5%B0%B.....69i57j69 I assume all the % is throwing it off. How can I getChanged() to see this as NOT a change please?
There is little data to answer.
Show what you have before the change, what you are changing for. You can compare these two lines as var_dump(A === B)
(05-28-2024, 08:14 PM)ozornick Wrote: There is little data to answer. Sorry, I should have looked more carefully. Indeed, my db structure was varchar(250) and the length I was inserting was too long. This was found by dumping what was in the db vs the new fill(). One was slightly shorter. Thank you very much for the trouble shooting steps. |
Welcome Guest, Not a member yet? Register Sign In |