[Solar-talk] _hasOne Help

Raymond Kolbe rkolbe at gmail.com
Wed Nov 14 13:24:56 CST 2007


Ok, so it looks like I am being forced to rename the cols in my table. This
is the setup I have:

http://pastebin.com/m7c86384d

When I run that, I get the following error:

http://pastebin.com/m65271384

So, as you can see, its trying

WHERE markets.restaurants_id = 1

And of course I do not have a restaurants_id col.

This is the error I got the other day. I spent some time tracking it down
and it doesn't look like anything I can change without hacking the Solar
core.

If there is no way to change this, is there a possibility that a workaround
be made for the next update of Solar?

Thanks all,
Raymond K.

On Nov 14, 2007 1:29 PM, Rodrigo Moraes <rodrigo.moraes at gmail.com> wrote:

> On Nov 14, 2007 4:21 PM, Kilbride, James P. wrote:
> > Does that actually do it or does the auto-create, if it occurs, always
> > add id regardless? When I was looking through the model code some time
> > back(0.28.0 admittedly) it looked like model always added id to the
> > columns if it was already there.
>
> this works already in the new model (Solar 1.0.0alpha1). in 0.28.0 and
> before, the behavior was perhaps different for the primary col, and
> certainly different for 'created' and 'updated' (now they are not
> obligatory and need to be declared).
>
> -- rodrigo
> _______________________________________________
> Solar-talk mailing list
> Solar-talk at lists.solarphp.com
> http://mailman-mail3.webfaction.com/listinfo/solar-talk
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman-mail3.webfaction.com/pipermail/solar-talk/attachments/20071114/91b6598c/attachment.html


More information about the Solar-talk mailing list