Make compatible with Entity Reference