Both Subjects and Users as school_id field, hence if i dint specify $this->getTableAlias(FALSE, FALSE) in default scope condition it would result in ambiguous column error.
But as of now its showing me t.school_id is unknown column, because $this->getTableAlias(FALSE, FALSE) return ‘t’ as alias not ‘s’.
How to overcome this issue by getting table alias as ‘s’ as specifed in CDBCriteria using $this->getTableAlias(FALSE, FALSE) in default Scope.
Even i am facing the similar issue of table alias > The function getTableAlias(FALSE, FALSE) doesnot give me the table alias which i specified in Cdbcriteria but it defaults to "t".Let me know if you have found any solution.