Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Suggestions: colname and set
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  5 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Paul Johnston  
View profile  
 More options Nov 6 2007, 5:49 am
From: "Paul Johnston" <p...@pajhome.org.uk>
Date: Tue, 6 Nov 2007 10:49:50 +0000
Local: Tues, Nov 6 2007 5:49 am
Subject: Suggestions: colname and set

Hi,

I've recently switched a fairly big app from ActiveMapper to Elixir and it
is working great. I really like being able to define foreign keys and
two-way relations in a single step. Got a couple of suggestions:

1) My database names fkeys using an "id" suffix, not "_id" as Elixir
defaults to. At the moment I have to manually specify colname on each
ManyToOne. What would be great is to tell Elixir once that the format is
"xxxid".

2) ActiveMapper had a "set" method, which was quite convenient, although
Elixir doesn't have this.

Any chance of adding these features? If people think they're a good idea, I
can produce a patch.

Paul


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Gaetan de Menten  
View profile  
 More options Nov 6 2007, 5:58 am
From: "Gaetan de Menten" <gdemen...@gmail.com>
Date: Tue, 6 Nov 2007 11:58:46 +0100
Local: Tues, Nov 6 2007 5:58 am
Subject: Re: [elixir] Suggestions: colname and set
On 11/6/07, Paul Johnston <p...@pajhome.org.uk> wrote:

> I've recently switched a fairly big app from ActiveMapper to Elixir and it
> is working great. I really like being able to define foreign keys and
> two-way relations in a single step.

That's always nice to hear!

> Got a couple of suggestions:

> 1) My database names fkeys using an "id" suffix, not "_id" as Elixir
> defaults to. At the moment I have to manually specify colname on each
> ManyToOne. What would be great is to tell Elixir once that the format is
> "xxxid".

Yes, that would be nice. I'd probably just move the format string to
be a global variable, so that people can override it if they want to
(I'm assuming people usually want the same format across their whole
app, so I think an entity option would be too much trouble). Or did
you have something else in mind?

> 2) ActiveMapper had a "set" method, which was quite convenient, although
> Elixir doesn't have this.

> Any chance of adding these features? If people think they're a good idea, I
> can produce a patch.

Sure, please do.
--
Gaėtan de Menten
http://openhex.org

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Paul Johnston  
View profile  
 More options Nov 6 2007, 7:28 am
From: Paul Johnston <paul....@gmail.com>
Date: Tue, 06 Nov 2007 12:28:48 -0000
Local: Tues, Nov 6 2007 7:28 am
Subject: Re: Suggestions: colname and set
Hi,

> Yes, that would be nice. I'd probably just move the format string to
> be a global variable, so that people can override it if they want to

Ok, I've put a potential patch on ticket #21, which can be a starting
point.

Paul


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Gaetan de Menten  
View profile  
 More options Nov 9 2007, 5:00 am
From: "Gaetan de Menten" <gdemen...@gmail.com>
Date: Fri, 9 Nov 2007 11:00:56 +0100
Local: Fri, Nov 9 2007 5:00 am
Subject: Re: [elixir] Re: Suggestions: colname and set
On 11/6/07, Paul Johnston <paul....@gmail.com> wrote:

> Hi,

> > Yes, that would be nice. I'd probably just move the format string to
> > be a global variable, so that people can override it if they want to

> Ok, I've put a potential patch on ticket #21, which can be a starting
> point.

This is committed (with modifications). Thanks.
--
Gaėtan de Menten
http://openhex.org

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Paul Johnston  
View profile  
 More options Nov 12 2007, 12:27 pm
From: Paul Johnston <paul....@gmail.com>
Date: Mon, 12 Nov 2007 17:27:31 -0000
Local: Mon, Nov 12 2007 12:27 pm
Subject: Re: Suggestions: colname and set
Gaetan,

> > Ok, I've put a potential patch on ticket #21, which can be a starting
> > point.
> This is committed (with modifications). Thanks.

Your changes look great. Thanks for taking the time to deal with this.

Paul


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »