Solved thread

This post is marked as solved. If you think the information contained on this thread must be part of the official documentation, please contribute submitting a pull request to its repository.

Does hasMany support more than one column?

$this->hasMany("id,type", "RobotsParts", "robots_id, robots_type");



2.7k
Accepted
answer
edited Jul '14

Try this:

    $this->hasMany(array("id", "type"), "RobotsParts", array("robots_id", "robots_type"));