I have been using Yii for a while and find it very good. I have to currently use MS SQL for a client with an existing complex db. The connection works fine.
In creating models, if I do not set anything in the "relations" function everything works fine, but if I try to set a relationship like
where the table User has a PK of UserID which is a guid not an integer
then I get an error as follows
CDbException
CDbCommand failed to execute the SQL statement: SQLSTATE[42000]: [Microsoft][SQL Server Native Client 10.0][SQL Server]Conversion failed when converting from a character string to uniqueidentifier.
I have tried to find a way around this, but would like to try the lazy loading of AR.