Hey, do I have to create an collection or something like this for attributed entities when I create a relation to a core entity?
I have a custom entity with a OneToOne relation to the product but unfortunately I can’t find it with .addAssociation(‚accessories‘)
Here is my entity:
#[EntityAttribute('accessories')]
class AccessoriesEntity extends Entity{
#[PrimaryKey]
#[Field(type: FieldType::UUID, api: true)]
public string $id;
#[ForeignKey(entity: 'product', api: true)]
public ?string $productId = null;
#[OneToOne(entity: 'product', api: true, column:"product")]
public ?ProductEntity $product = null;
#[ReferenceVersion(entity: 'product')]
public ?ProductEntity $ref = null;
}