I deletion is not possible, would the skip method work for you?
-- http://book.cakephp.org/3.0/en/core-libraries/collections.html#Cake\Collection\Collection::skip
Enjoy, John
On Thursday, 25 February 2016 16:56:27 UTC+2, Rafael Santos wrote:
On Thursday, 25 February 2016 16:56:27 UTC+2, Rafael Santos wrote:
Hi,i'm using CakePHP's Collections on a non-cakephp project. I was search for a Collection package and I find yours to be the best.Is there a way to easily delete the first element of a collection?For example, $collection->first()->remove(). Thanks
Sign up for our Newsletter for updates.
http://cakephp.org/newsletter/signup
We will soon be closing this Google Group. But don't worry, we have something better coming. Stay tuned for an updated from the CakePHP Team soon.
Like Us on FaceBook https://www.facebook.com/CakePHP
Follow us on Twitter http://twitter.com/CakePHP
---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment