Pheasant\Relationships\HasMany::get PHP Method

get() public method

* (non-phpdoc)
See also: Relationship::get()
public get ( $object, $key, $cache = null )
    public function get($object, $key, $cache = null)
    {
        $query = $this->query("{$this->foreign}=?", $object->get($this->local));
        return new Collection($this->class, $query, $this->adder($object));
    }