News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Felix Geisendorfer's Blog:
Modelsave() now returns an array!
November 07, 2007 @ 10:23:00

Felix Geisendorfer has a quick tip for CakePHPers out there today - an update to the framework that might cause a "gotcha" moment in your code:

Just got bitten by this one when updating to the latest version of CakePHP. If you use code [checking to see if the return from a save() is true] in your app, you're in for a surprise. Because as of revision 5895 Model::save() now returns Model::data on success if its not empty.

He notes that most developers don't seem to do it this way, but it tripped him up enough to where he wanted to share it with the CakePHP community so they'd know. Check out the comments on the post for other issues that might be caused by the change.

0 comments voice your opinion now!
cakephp framework model save condition return array cakephp framework model save condition return array


blog comments powered by Disqus

Similar Posts

DevShed: Using the Sleep and Wakeup Functions to Serialize Objects in PHP (Part 2)

Community News: Symfonians - Symfony-based Social Networking Application

The Nerdery: NerdCast #93: Developer Download Symfony Edition

PHPMaster.com: Openbiz Cubi: A Robust PHP Application Framework, Part 2

Felix Geisendorfer's Blog: How to organize your CakePHP App's Javascript?


Community Events

Don't see your event here?
Let us know!


api laravel introduction language unittest community psr7 opinion library voicesoftheelephpant conference extension podcast laravel5 development interview series video framework release

All content copyright, 2015 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework