[Deprecated] DMZ 1.6.2 (DataMapper OverZealous Edition) |
[eluser]OverZealous[/eluser]
Announcing 1.7.0 Release Candidate 2 I decided to go with get_iterated, since it is the most accurate description. However, the get_iterated method works a lot differently than it did before. The old version required capturing the result of the method call, and iterating over that object specifically. However, I was able to integrate the Iterable directly into the main class, as well as provide seamless access to exists() and result_count() on the same object. Usage now looks like this: Code: $countries = new Country(); I think this is pretty slick! It means switching to the new method is as simple as adding _iterated to your existing code. (The new method now returns $this for method chaining.) This update includes several bugfixes, the renaming of get_large_query to get_iterated, and there are also two new methods, get_paged_iterated and count_distinct. The manual has also been updated. Also, the example application now is using get_paged_iterated, so you can see how it works in practice. Edit: Links are good ![]() Quote:Download the Latest Version Here |
Welcome Guest, Not a member yet? Register Sign In |