You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Film title on right is not populated. What's the best manner to fill object by $film->url ?
My idea is separate id from url and use it in FilmEndpoint get method. Is there another clean way?
Yeah, so I wanted to do an invisible lazy-load here - where you access $v->films[0] and it goes away and gets the full Film object for you. It's a bit fiddly with JsonMapper so I'll have a think about the best way to do that.
In the meantime, I've added a method in v0.2.0 that allows you to get a resource by it's URI:
Activity
Add a method for getting resources by their URI
rmasters commentedon Jan 20, 2015
Hi!
Yeah, so I wanted to do an invisible lazy-load here - where you access
$v->films[0]and it goes away and gets the full Film object for you. It's a bit fiddly with JsonMapper so I'll have a think about the best way to do that.In the meantime, I've added a method in v0.2.0 that allows you to get a resource by it's URI:
Cheers
aledebs commentedon Jan 21, 2015
Great! Thanks for add.