News Feed
Sections




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

SaniSoft Blog:
unbindModel() and paginate() gotcha in CakePHP 1.2
March 06, 2008 @ 12:59:00

Tarique Sani has pointed out a little "gotcha" he came across when working in his CakePHP application a while back, specifically with the unbindModel and paginate methods.

A small note to myself regarding a gotcha which I ran into today morning with the built in unbindModel method which lets you disassociate model relations on the fly.

He sets up a situation where his model works correctly in one case but reverts back to the bindings it started with in another. He provides a way around it - an optional parameter that forces the CakePHP framework to treat things correctly.

0 comments voice your opinion now!
cakephp framework unbindmodel paginate


blog comments powered by Disqus

Similar Posts

Blog.PHPDeveloper.org: Notes from the php|architect Zend Framework Webcast

CodeIgniter Blog: CodeIgniter 1.6.3 Maintenance and Security Release

Pádraic Brady's Blog: The Framework Interoperability Group (FIG)

Nomad PHP: June 2013 - Phil Sturgeon, "Laravel 4: Yet Another Framework- but different"

The Bakery: Six New Components/Articles/Tutorials (SOAP, XHR, Tickets, Models, Releases & Flashes)


Community Events





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


security podcast introduction release series mvc community opinion library symfony composer tool interview laravel language update framework version package voicesoftheelephpant

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