Strict Mode on Pods() Never returns FALSE
-
I have tried all sorts of variations on the code:
$BotanicalName = 'xLinda Buxtonus'; $params = array( 'where' => "t.post_title = '{$BotanicalName}'", 'limit' => 1, ); echo MyDump($params, '$params for find()'); $Pod = pods('plant', $params, true ); if ( $Pod->exists() ) echo "<p>Exists"; else echo "<p>DOES NOT EXIST!";
“exists()” always returns false. I can dump the object returned and can see the difference from when something is returned or not but don’t know how to tell programatically if it failed.
I have set “strict” mode to true so it should return a boolean false but it never does.
What I want to do is check if the object exists, update it if so, otherwise create and update a new object.
Viewing 12 replies - 1 through 12 (of 12 total)
Viewing 12 replies - 1 through 12 (of 12 total)
- The topic ‘Strict Mode on Pods() Never returns FALSE’ is closed to new replies.