I have a ngRestModel (ex. Activity) with 2 attributes (ex. "_typeid" and "_categoryid") related with another ngRestModel (ex. DictionaryDetail), both fields referencing on DictionaryDetail ID field. In Activity model I have the ngRestAttributeTypes method within I have two different "where" pointing to same DictionaryDetail model. The second "where" doesn't apply, only the first one.
What is the expected result?
In _typeid I expect to see DictionaryDetail rows filtered by the "where" clause.
In _categoryid I expect to see DictionaryDetail rows filtered by the "where" clause.
What do you get instead? (A Screenshot can help us a lot!)
In both fields ("_typeid" and "_categoryid") I see the results from the first "where".
LUYA Check ouput (run this script and post the result: luyacheck.php)
What steps will reproduce the problem?
I have a ngRestModel (ex. Activity) with 2 attributes (ex. "_typeid" and "_categoryid") related with another ngRestModel (ex. DictionaryDetail), both fields referencing on DictionaryDetail ID field. In Activity model I have the ngRestAttributeTypes method within I have two different "where" pointing to same DictionaryDetail model. The second "where" doesn't apply, only the first one.
What is the expected result?
In _typeid I expect to see DictionaryDetail rows filtered by the "where" clause. In _categoryid I expect to see DictionaryDetail rows filtered by the "where" clause.
What do you get instead? (A Screenshot can help us a lot!)
In both fields ("_typeid" and "_categoryid") I see the results from the first "where".
LUYA Check ouput (run this script and post the result: luyacheck.php)
Additional infos
This method causes the problem: