When i set the orderBy property on an association at the owning side, it automatically set the same property at the inverse side in skipper.
In the end what this create is actually only an orderBy at the owning side, and nothing at the inverse side. I can't find any way to set the orderBy at the inverse side.
Example:
"User" has many "Action"
Action has a field 'user_id'
I want to get all "Action"s for a "User", ordered by "Action" name.
So i set the orderby At User on 'name', however this creates an orderBy at Action..
If i run this, it won't add the orderBy at the User part, but only at the Action part. How can i change this around?
User:
columns:
id:
unique: true
primary: true
type: integer(4)
notnull: true
autoincrement: true
unsigned: true
Action:
columns:
id:
unique: true
primary: true
type: integer(4)
notnull: true
autoincrement: true
unsigned: true
user_id:
type: integer(4)
unsigned: true
name:
type: string
relations:
User:
class: User
foreignAlias: Action
orderBy: name
local: user_id
foreign: id