-------- Forwarded Message --------
Subject: Case Sensitivity and Joins
Date: Sat, 11 Apr 2015 00:11:36 -0400
From: Dave Quinn-Jacobs <
d...@cogentqi.com>
To:
vr...@php.net
Hello Jakub,
I have started using NotORM for a project, and I love it for it’s
simplicity of use. I’m having case sensitivity problems, however. I’ve
gotten around most of them by using the structure discovery and methods.
My table names are InCamelCase with a leading upper case letter, and
my columNames lead with a lower case letter. My id fields are
inCamelCaseId, where the first letter of the table name is lower and Id
is appended to arrive at a foreign key.
Nearly everything is working except that when I reference a joined
table, it returns null on the Linux side, but works just fine on a Mac
OS X server. On the Linux side the lower_case_table_names is set to 2
in my.cnf.
$module=$planRecord->Module;// This line returns empty.
$module=$this->api->db->Module()->where('id=?',$planRecord["moduleId"])->fetch();//
This line works.
I was wondering if you have any idea why this is happening, and if there
is a fix I can make? I’d hate to lose the nice ability you have put in
to do joins as in the first line.
Thank you very much for your time, and your contribution of this software.
Dave Quinn-Jacobs, CTO
607-227-7351
<
http://cogentqi.com>