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

Assets Collection returning 0 results #16

Closed
bryantAXS opened this issue Aug 6, 2014 · 2 comments
Closed

Assets Collection returning 0 results #16

bryantAXS opened this issue Aug 6, 2014 · 2 comments

Comments

@bryantAXS
Copy link

Not entirely sure where to start debugging this one, but I have a simple Assets field with one entry added to it. When I try and access the raw field itself $entry->image_field_name, I get:

object(rsanchez\Deep\Collection\AssetCollection)[294]
  protected 'items' => 
    array (size=0)
      empty
@rsanchez
Copy link
Owner

rsanchez commented Aug 7, 2014

Are you using local files with Assets? Or S3/Google? I have only tested Deep with local files, aka the Assets EE driver. That's probably the issue, if so.

Custom field hydration has been heavily refactored in the 1.1 branch. I'm hesitant to devote any time debugging 1.0 at this point. If you don't mind installing 1.1, I can help you debug at that point. Probably the best thing to do is send me a SQL dump if updating doesn't fix anything.

Install it in your composer.json like so: "rsanchez/deep": "1.1.*@dev". The big caveat is that Deep 1.1 requires PHP 5.4 / Eloquent 4.2 (up from 4.1).

@bryantAXS
Copy link
Author

Awesome I just updated and that's working great now. For reference I was
using local files.

Thanks for the quick response Rob!

On Wed, Aug 6, 2014 at 7:16 PM, Rob Sanchez notifications@github.com
wrote:

Are you using local files with Assets? Or S3/Google? I have only tested
Deep with local files, aka the Assets EE driver. That's probably the issue,
if so.

Custom field hydration has been heavily refactored in the 1.1 branch
https://github.com/rsanchez/Deep/tree/1.1. I'm hesitant to devote any
time debugging 1.0 at this point. If you don't mind installing 1.1, I can
help you debug at that point. Probably the best thing to do is send me a
SQL dump if updating doesn't fix anything.

Install it in your composer.json like so: "rsanchez/deep": "1.1.*@dev
https://github.com/dev". The big caveat is that Deep 1.1 requires PHP
5.4 / Eloquent 4.2 (up from 4.1).


Reply to this email directly or view it on GitHub
#16 (comment).

Bryant Hughes
bryant@thegoodlab.com
www.thegoodlab.com
@thegoodlab http://www.twitter.com/thegoodlab

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

No branches or pull requests

2 participants