Demo code for createJoins function

52 views
Skip to first unread message

Khắc Đạo Phan

unread,
Jan 23, 2015, 10:56:43 AM1/23/15
to not...@googlegroups.com
I found createJoins($val) function in NotORM_Result class.
But I don't know the structure of $val variable in the function.
Someone please give me a sample of about $val variable structure using for the function createJoins.

Thanks!

Allysson David

unread,
Jan 23, 2015, 1:13:09 PM1/23/15
to not...@googlegroups.com
It is a protected method. It is not supposed to be called directly.
At most, you can call it in a subclass if you decide to extend NotORM_Result.

Now, for your answer, it expects a column name (or columns separated by comas). Accepts both the dot and colon notation.
What it does is generate an array with the " LEFT JOIN `table` ON `parenttable`.`somecolumn` = `othertable`.`othercolumn`" string that NotORM will use later.
Reply all
Reply to author
Forward
0 new messages