On Jul 5, 5:45 pm, Nick Kilian <[email protected]> wrote:
> Oh right, it's you again, so another problem then? ;-D
>
> On Jul 5, 6:31 pm, Nick Kilian <[email protected]> wrote:
>
> > Reg,
>
> > haven't checked your code yet to see how you're compiling the code,
> > but could this help you?
>
> >http://groups.google.com/group/castle-project-users/browse_thread/thr...
>
> > On Jul 5, 6:13 pm, Regis Dubois <[email protected]> wrote:
>
> > > Hi,
>
> > > I have been using ActiveRecord for quite a while, so far without much
> > > issues.
>
> > > Today however I came accross a problem which baffles me.
>
> > > I have attached some code as it better describes the issue.
>
> > > Basically I compile a class and register it dynamically within
> > > ActiveRecord (using ActiveRecordStarter.RegisterAssemblies(typeAssembly))
> > > and then create an object of this type using reflection.
>
> > > Calling Save() on the object works fine and it is perfectly commited into
> > > the DB.
>
> > > HOWEVER, if I attempt to first perform a search on another ActiveRecord
> > > Type then I get a "no persister found" exception when trying to save.
>
> > > I know... that makes no sense...
>
> > > I have attached some code to this email, can somebody kindly have a look
> > > at the problem?
>
> > > The code comes with 2 unit tests, one to create the type, the second one
> > > to persist the object.
>
> > > To reproduce the problem, just uncomment the line:
>
> > > //TypeRelationship.FindByOwnerId(typeId);
>
> > > Thanks,
>
> > > Regis
>
> > >  ActiveRecordDebug.zip
> > > 2550KViewDownload

Hey Nick ;)

I have a talent for breaking things...

If you have a minute please check the code and advise. (I could to the
find using an sql statement as a workaround but I'd like to know if
this is a genuine AC bug or just me doing something wrong)

Thanks,

Regis

-- 
You received this message because you are subscribed to the Google Groups 
"Castle Project Users" 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/castle-project-users?hl=en.

Reply via email to