Welcome Guest, Not a member yet? Register   Sign In
hasChanged() says it has changed when it hasn't.
#1

(This post was last modified: 05-28-2024, 05:42 PM by spreaderman.)

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()){
                echo 
"Changed!</br>";
                
$hasChanged++;
               
print_r(  $OsmSkiResort->toRawArray(true));
            } else {
                echo 
"NoChange</br>";
                
$nothingToUpdate++;
            } 

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?
Reply


Messages In This Thread
hasChanged() says it has changed when it hasn't. - by spreaderman - 05-28-2024, 05:41 PM



Theme © iAndrew 2016 - Forum software by © MyBB