Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

search parameter "relationdepth" don't work #21

Open
rchntrl opened this issue Jul 29, 2015 · 5 comments
Open

search parameter "relationdepth" don't work #21

rchntrl opened this issue Jul 29, 2015 · 5 comments

Comments

@rchntrl
Copy link

rchntrl commented Jul 29, 2015

http://wow.blizzgame.ru/api/v1/GalleryImage/5675?relationdepth=2

@tractorcow
Copy link

relationdepth=0 certainly works at least.

See DataFormatter in core (framework)

/**
     * Follow relations for the {@link DataObject} instances
     * ($has_one, $has_many, $many_many).
     * Set to "0" to disable relation output.
     *
     * @todo Support more than one nesting level
     *
     * @var int
     */
    public $relationDepth = 1;

@robbieaverill
Copy link
Contributor

In my recently installed SS 3.2.1 environment using the Page API I see no difference in the results of using relationdepth=0, 1 or 2 (or any higher).

Edit: when I actually use a Relation, the parameter does work as expected, at least for 0 and 1

@tractorcow
Copy link

Yeah it doesn't work for 2. Someone needs to implement it. :)

@paul-ang
Copy link

Relation depth more than 1 is not working for 2.0.3 too (SS4.1)

@robbieaverill
Copy link
Contributor

@mrvickiee yeah, still doesn't exist =)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants