Re: [CDBI] uniqueness of objects in memory??

[prev] [thread] [next] [Date index for 2005/10/24]

From: Phil Mitchell
Subject: Re: [CDBI] uniqueness of objects in memory??
Date: 19:35 on 24 Oct 2005
On 10/24/05, Perrin Harkins <perrin@xxxx.xxx> wrote:
> On Mon, 2005-10-24 at 10:42 -0700, Phil Mitchell wrote:
> > I am surprised to find that I can rip out all the relationships
> > (except has_a(Prefs) of course) and triggers and still get this
> > result. Here's the boiled-down CDBI portions of my three classes
>
> I think you'd need to supply a sample of code that actually uses these
> and exhibits the bug, i.e. a failing test.

=3D=3DNot sure how to do this in a meaningful way. This is a typical web
app (on Catalyst) ... so is distributed across MVC. I'll think more
about this...

Something does look odd here
> though:
>
> > User, Prefs, and Page -- User and Prefs are both subclasses of Page.
>
> It's not common to subclass a class that defines a table and columns.
> I'm not confident that it will work.  Does the problem still exist if
> you copy the table and column setup into the other classes and remove it
> from the base class?

Yes, it does.

I didn't realize this was that unusual -- I thought CDBI was set up to
support inheritance within the model. In my design, it's pretty
important to be able to define a set of base columns, rships, and
triggers that all subclasses share ... Anyhow, I did try moving the
CDBI code into the subclasses, and still see this problem.

There's a very simple workaround to this particular issue. But does it
suggest to you that something's hairily wrong? My app is fairly far
along, and otherwise working fine...

>
> - Perrin
>
>


--
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D
2People Blog: http://2-people.blogspot.com/
2People site: http://www.2people.org

_______________________________________________
ClassDBI mailing list
ClassDBI@xxxxx.xxxxxxxxxxxxxxxx.xxx
http://lists.digitalcraftsmen.net/mailman/listinfo/classdbi

(message missing)

[CDBI] uniqueness of objects in memory??
Phil Mitchell 03:32 on 24 Oct 2005

Re: [CDBI] uniqueness of objects in memory??
Perrin Harkins 16:12 on 24 Oct 2005

Re: [CDBI] uniqueness of objects in memory??
Phil Mitchell 17:42 on 24 Oct 2005

Re: [CDBI] uniqueness of objects in memory??
Perrin Harkins 18:41 on 24 Oct 2005

Re: [CDBI] uniqueness of objects in memory??
Christopher H. Laco 18:53 on 24 Oct 2005

Re: [CDBI] uniqueness of objects in memory??
Phil Mitchell 19:43 on 24 Oct 2005

Re: [CDBI] uniqueness of objects in memory??
William Ross 19:50 on 24 Oct 2005

Re: [CDBI] uniqueness of objects in memory??
Phil Mitchell 19:35 on 24 Oct 2005

Re: [CDBI] uniqueness of objects in memory??
Perrin Harkins 19:52 on 24 Oct 2005

[CDBI] Re: uniqueness of objects in memory??
Edward J. Sabol 19:47 on 24 Oct 2005

Re: [CDBI] Re: uniqueness of objects in memory??
Perrin Harkins 19:54 on 24 Oct 2005

[CDBI] Re: uniqueness of objects in memory??
Edward J. Sabol 20:03 on 24 Oct 2005

Re: [CDBI] Re: uniqueness of objects in memory??
Phil Mitchell 20:18 on 24 Oct 2005

Re: [CDBI] uniqueness of objects in memory??
Christopher H. Laco 19:46 on 24 Oct 2005

Re: [CDBI] uniqueness of objects in memory??
Christopher H. Laco 19:56 on 24 Oct 2005

Re: [CDBI] Re: uniqueness of objects in memory??
Michael Peters 20:23 on 24 Oct 2005

Re: [CDBI] Re: uniqueness of objects in memory??
Phil Mitchell 20:31 on 24 Oct 2005

Re: [CDBI] Re: uniqueness of objects in memory??
Bill Moseley 20:46 on 24 Oct 2005

Re: [CDBI] Re: uniqueness of objects in memory??
Phil Mitchell 21:30 on 24 Oct 2005

Re: [CDBI] Re: uniqueness of objects in memory??
Phil Mitchell 22:07 on 24 Oct 2005

Re: [CDBI] Re: uniqueness of objects in memory??
Perrin Harkins 22:13 on 24 Oct 2005

Re: [CDBI] Re: uniqueness of objects in memory??
Phil Mitchell 23:34 on 24 Oct 2005

Re: [CDBI] Re: uniqueness of objects in memory??
Rod McChesney 03:15 on 25 Oct 2005

Re: [CDBI] Re: uniqueness of objects in memory??
Phil Mitchell 03:48 on 25 Oct 2005

Re: [CDBI] Re: uniqueness of objects in memory??
Perrin Harkins 04:18 on 25 Oct 2005

Re: [CDBI] Re: uniqueness of objects in memory??
Phil Mitchell 06:08 on 25 Oct 2005

Generated at 14:18 on 27 Oct 2005 by mariachi v0.52