#189 ✓resolved
ronin-13570 (at lighthouseapp)

first always returns array

Reported by ronin-13570 (at lighthouseapp) | February 14th, 2008 @ 04:42 PM

It seems as though any call to first with a limit of 1 returns an array rather than a single object or nil. Is this the

desired behaviour? It's certainly not what I would have expected.

Looking at the code, it seems there intention was always to return one result but that isn't actually happening. Here's a possible fix.

Comments and changes to this ticket

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

Shared Ticket Bins

People watching this ticket

Attachments

Tags

Pages