On Wed, Dec 10, 2008 at 12:52, Giovanni Marco Dall'Olio
<[EMAIL PROTECTED]> wrote:
> On 12/10/08, Gaetan de Menten <[EMAIL PROTECTED]> wrote:
>>
>>  On Tue, Dec 9, 2008 at 18:42, Giovanni Marco Dall'Olio
>>  <[EMAIL PROTECTED]> wrote:
>>
>> There is a recipe providing a similar (but a bit more explicit) pattern:
>>
>>  
>> http://elixir.ematia.de/trac/wiki/Recipes/GetByOrAddPattern#GetByorAddPattern
>>
>
> Thank you very much. I am sorry, I must have missed it :(.
>
> Well, I am going to write a unittest for the get_by_or_add behaviour.
> Do you need it?

No, unless people convince me to add the method on the default Entity,
see below.

> p.s. this is up to you, but I think that it could be useful to add
> this method to the official Elixir Entity object.

I personally don't like it that much. If people want it, they can
provide their own base class (optionally inheriting from EntityBase to
get all the default methods -- in the future version 0.7 of Elixir).
That said, if you manage to rally enough people to tell me they want
it in by default, I'll probably add it.

-- 
Gaƫtan de Menten
http://openhex.org

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"SQLElixir" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sqlelixir?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to