Closed (fixed)
Project:
Commerce File
Version:
7.x-1.0-beta4
Component:
Miscellaneous
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
10 May 2013 at 18:28 UTC
Updated:
27 Jul 2016 at 09:00 UTC
Jump to comment: Most recent
Comments
Comment #1
bojanz commentedYou can do an entityfieldquery with a propertyCondition on "uid" and a fieldCondition on "commerce_line_item_reference".
Comment #2
bojanz commentedActually, no, that won't work, you need the fid on the other side. An entityfieldquery won't do the trick.
Comment #3
recrit commentedthere is a helper field query function commerce_file_license_load_by_property() that gets used in various places such as the "commerce_file_access_link" field formatter to switch between a link and plain text display.
If you only know the file ids and user account, it can be called:
This could be broken out to be used elsewhere.
Comment #4
bojanz commentedMarking as fixed based on #3.
Comment #5.0
(not verified) commentednico
Comment #6
daniel wentsch commentedBump. It seems commerce_file_license_load_by_property is gone – is there any alternative we could use today (still D7)?