[Solar-talk] Solar_Sql and Solar.config.php
Kilbride, James P.
James.Kilbride at gd-ais.com
Wed Nov 14 12:26:12 CST 2007
Btw, something is not quite clear to me with using config to set
Solar_Sql default information. If I have multiple databases I need to
connect to(say DB1 and DB2 which are both in mysql for the sake of
arguement) in order to get to all of my differnet models, how do I
manage both of those in the same application? Do I have to basically
inherit my own implementation of Solar_Sql_Adapater or something? I have
some places where I have application data for one application in one
database, but the other applications may be elsewhere and all
applications use a third database for user authentication/role
information.
James Kilbride
-----Original Message-----
From: solar-talk-bounces at lists.solarphp.com
[mailto:solar-talk-bounces at lists.solarphp.com] On Behalf Of Rodrigo
Moraes
Sent: Wednesday, November 14, 2007 1:19 PM
To: solar-talk at lists.solarphp.com
Subject: Re: [Solar-talk] _hasOne Help
On Nov 14, 2007 4:17 PM, Rodrigo Moraes wrote:
> oh, but this is just a convention. in your models, you can use any
> primary key name you want overriding the property $_primary_col:
>
> $_primary_col = 'my_column_name';
ooops. of course it should be:
protected $_primary_col = 'my_column_name';
;)
rodrigo
_______________________________________________
Solar-talk mailing list
Solar-talk at lists.solarphp.com
http://mailman-mail3.webfaction.com/listinfo/solar-talk
More information about the Solar-talk
mailing list