[RDBO] with_map_records on demand from a many_to_many join

2006-11-27 Thread Jud
purpose of having a many-to-many join available. Is there a way to do this now, and/or can I request this feature :) Thanks, - jud - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Tech

Re: [RDBO] with_map_records on demand from a many_to_many join

2006-11-27 Thread Jud
; > [ > users => > { > type => 'many to many', > map_class=> 'ProjectUserMap ', > manager_args => { with_map_records => 1 }, > }, > ... > ] Thanks. This is perfect. Best regards, - jud ---

[RDBO] Determine which columns/fields have been modified at/before save

2006-12-15 Thread Jud
le. However, I couldn't find it. Many thanks, - jud - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business

[RDBO] automatically create separate get_ and set_ methods for columns

2007-01-12 Thread Jud
data::Column docs, in the "MAKING METHODS" section under the text "The default method map is:" the titles are get_set, get, and get_set. The final get_set should probably be just "set" Many thanks, - jud -

Re: [RDBO] automatically create separate get_ and set_ methods for columns

2007-01-12 Thread Jud
John- > John Siracusa wrote: > A better option is to make your own Metadata subclass and then override the > make_column_methods() method and change the auto_method_types() of all the > columns before calling through to the base class implementation: Thanks for the speedy and detailed repl

Re: [RDBO] automatically create separate get_ and set_ methods for columns

2007-01-16 Thread Jud
uot; > at /usr/lib/perl5/site_perl/5.8.6/Rose/DB/Object.pm line 1464 > > some other flag needs to be set to inform Rose::DB classes to use > 'get_product_id' instead of 'product_id' ? Perhaps you can use the Rose::DB::Object::Helpers method: init_with_column_value_

Re: [RDBO] Deleting from a one-to-many

2007-02-06 Thread Jud
John Siracusa wrote: > How about a delete_now method type for 1-to-m relationships (same arg > formats as the "find" method type): +1 for this. Would be very helpful. - Using Tomcat but need to do more? Need to support web s

Re: [RDBO] Only the first unique key is used for load?

2007-02-12 Thread Jud
> Allowing a key name to be specified as a parameter to the load() call > is a better idea, I think. (That'd require people to give their > unique keys nice/sensible/memorable names, of course.) +1 for this. - Using Tomcat b

Re: [RDBO] New Manager argument forms

2007-02-16 Thread Jud
>>Opinions? > > > My initial thought was "messy", but I keep typing it that way > expecting it to work so I agree with Ted, DWIM. +1 for me also. I do the same thing. - Take Surveys. Earn Cash. Influence the Future of IT

[RDBO] Sharing one database between all objects

2007-02-26 Thread Jud
n my test, which seems like a lot of overhead. Thanks, - jud - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT &

[RDBO] related objects omitted/restricted by Rose::DB::Object::Manager during query

2007-03-09 Thread Jud
loyees.name' => 'jud', ], with_objects => [ 'employees' ], ); I get the expected results (1 item in the test case). However, when I look at the list of employees for projects in my result set, they only contain the employee that was in my search( me ), inst

Re: [RDBO] Duplicate many-to-many map rows

2007-03-10 Thread Jud
> CREATE TABLE foo_bar_map ( > id INTEGER AUTO_INCREMENT PRIMARY KEY NOT NULL, > foo_id INTEGER, > bar_id INTEGER, > FOREIGN KEY(foo_id) REFERENCES foos(id), > INDEX(foo_id), > FOREIGN KEY(bar_id) REFERENCES bars(id), > INDEX(bar_id) > )Type=InnoDB;

Re: [RDBO] Transactions, ACID etc.

2007-03-16 Thread Jud
ry. Would either of you be willing to share your code? I'm looking to solve a similar problem and would greatly appreciate it. Thanks, - jud - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's

Re: [RDBO] Sequence Support

2007-03-20 Thread Jud
On 20/03/07 18:57 -0400, Jonathan Vanasco <[EMAIL PROTECTED]> wrote: > ok. its on my list right after the debugger module :) If you're actually putting together a debug module, I'd put in a request for a simple way to turn on all debugging in Rose... Like via an environment variable, or using Log

Re: [RDBO] Transactions, ACID etc.

2007-03-21 Thread Jud
Thanks for this. - jud On 16/03/07 10:12 -0700, "Randal L. Schwartz" wrote: > >>>>> "Jud" == Jud <[EMAIL PROTECTED]> writes: > > Jud> Would either of you be willing to share your code? I'm looking to solve > Jud> a similar pr

Re: [RDBO] Streamlining documentation

2007-05-18 Thread Jud
absorb the material in any way! If anything, I would like to see more examples, including the map table with extra data that seems to be a frequent source of confusion. Keep up the good work. - jud - This SF.net email is spo

[RDBO] creating related records with a multi-valued primary key

2006-11-07 Thread Jud Dagnall
gt;new( {project_id => 1, tag_id => 2, profile_id => 3}); $mapping->save; Many thanks, - jud Here are the details of my db and classes: DB TABLE SETUP === table projects ( id int not null primary key, name varchar(255)

Re: [RDBO] creating related records with a multi-valued primary key

2006-11-09 Thread Jud Dagnall
n existing project. Thanks again, - jud John Siracusa wrote: > On 11/7/06, Jud Dagnall <[EMAIL PROTECTED]> wrote: > >>In my application, there is are projects, tags, and profiles (users). >>Projects can be tagged by multiple profiles. Each tag has a many-to-many

Re: [RDBO] related objects omitted/restricted by Rose::DB::Object::Manager during query

2007-03-09 Thread Jud Dagnall
Hey John- Thanks for the quick and detailed reply. See my comments inline: On 09/03/07 10:30 -0500, John Siracusa <[EMAIL PROTECTED]> wrote: > What you seem to want is "all projects with all their employees, where > at least one of the employees' names is 'jud'&qu