Questions tagged [entityreference]

89 questions
2
votes
1 answer

XQuery Invalid entity reference error caused by "&" entity reference

I'm trying to run this line xdmp:unquote(concat('', string( $paragraph) , '')) but I've got the following error: xdmp:unquote("LEARNING & MEMORY") -- Invalid entity reference " " at line 1. It seems like this entity…
s.e
  • 271
  • 2
  • 15
2
votes
1 answer

How can I get referencing entity Id from referenced entity?

I have 3 content types A, B, C. B and C have entity reference fields that reference to A and B and with different machine names. I want to get the parent node ID from referenced node. A is referenced to B B is referenced to C Now if I am on A then…
2
votes
3 answers

Is looping through the entityreference the correct way?

I want to get all users that have a specific role to a list of usernames. Is using .Include to include all the users, and going through the UsersReference the best way to loop through all the users that are associated with the role? I noticed I…
Johan Alkstål
  • 5,225
  • 9
  • 36
  • 48
2
votes
1 answer

Problem querying with EntityReference

When I execute the code: public List GetCustomerTxList(int customerId) { var matchingPocos = new List(); using (linq.AOMSEntities dataRepos = new linq.AOMSEntities()) { …
Paul
  • 2,543
  • 3
  • 26
  • 36
2
votes
2 answers

Entity Framework: Assign entity to property of another entity

I have these entities (this is just an abstraction I created for this post): Language District Description These are the references between them: District * - 1 Language Description * - 1 Language District 1 - 1 Description If I fetch like…
2
votes
3 answers

How can I eliminate duplicate Drupal nodes in a View when one CT references the other?

Drupal 7 with relevant Modules: Views & Entity Reference I have a view that simply shows the "Teaser" display type of two different Content Type records, we'll say they are Article and Page. My Article CT has some simple fields that are shown. My…
Christopher Cooper
  • 1,910
  • 4
  • 20
  • 25
1
vote
1 answer

Entity Framework - Inner Join on Foreign Key

I am using Entity Framework 4.0 (so I can use it with .NET 3.5) and I generated a DAL from an existing database. In the database I have two tables with the following columns (Nothing is allowed to be NULL): tblWeapon (WeaponId PK,…
CuppM
  • 1,668
  • 4
  • 19
  • 30
1
vote
0 answers

How can I get WebStorm to lookup entity references in my DTD files

I'm using JetBrains WebStorm 2023.1, to work on a Thunderbird extension. My extension includes some XUL/XHTML files whose content gets overlaid on top of Thunderbird. These files contain may attribute values which are placeholders for DTD lookup,…
einpoklum
  • 118,144
  • 57
  • 340
  • 684
1
vote
0 answers

EntityRef-object not refreshed after LINQ-update?

If have 2 entity classes, ProductEntity and CategoryEntity: [Table(Name = "Products")] public class ProductEntity { // Data Members private int _productID; private string _productName; private int _categoryID; private…
ChrisPeeters
  • 153
  • 2
  • 13
1
vote
1 answer

I am getting " EntityRef: expecting ';' error while creating xml through php "

This is my XML,I am using php code for creating this xml. Please see screenshot for code: 2018-03-30T10:28:28+00:00
Vishal Thakur
  • 1,564
  • 16
  • 25
1
vote
1 answer

what is entity reference definition

I'm trying to understand the use of entity reference (in crm 2011) I found online many examples of entity reference use, mostly with lookup fields, but I need an absoulte descreption. Is entity reference only for lookup field use ? can I use a…
Damkulul
  • 1,406
  • 2
  • 25
  • 59
1
vote
2 answers

Linq to Entities, EntityReferences and DataGridViews

I am trying to select certain fields from my entity to be used as the datasource for a datagridview, but I haven't been able to make it work. Is such a thing possible? For example, I have a Customers entity that contains several entityreferences. …
Mark
1
vote
1 answer

Drupal 8 - Entity Reference - Autocomplete - Add fields to search and result in autocomplete

I have an entity called "lawyers." And another entity refers to lawyers. The problem is that when searching the reference field with the autocompletion system many repeated names appear: Pablo Pablo Pablo Pablo I need the reference field to be able…
Javier
  • 395
  • 3
  • 18
1
vote
1 answer

Drupal 8 Views: Ignore a contextual filter for admin role

I have a view serving an entity reference field. I need it to: (1) pull content authored by the currently logged in user, (2) unless the currently logged-in user has "administrator" role, in which case pull all content. Currently I have the…
yycroman
  • 7,511
  • 1
  • 19
  • 21
1
vote
2 answers

EntityRef adding unwanted record

I have an BookOrder object which has an EntityRef var to a Book object. The objects are linked by book Id. When inserting a new BookOrder record, a new Book record also gets inserted into the book table. How do I stop this, and just insert the…
Jason
  • 75
  • 9