Questions tagged [entities]

Entity-relationship model (ER model for short) is an abstract and conceptual representation of data.

In software engineering, an entity-relationship model (ER model for short) is an abstract and conceptual representation of data. Entity-relationship modeling is a database modeling method, used to produce a type of conceptual schema or semantic data model of a system, often a relational database, and its requirements in a top-down fashion. Diagrams created by this process are called entity-relationship diagrams or ER diagrams.

832 questions
4
votes
1 answer

Symfony2 Validation against entire entity

I need to be able to do complex custom validation of an entire entity in Symfony2. Eg: my entity has many subentities, and all subentities must sum to 100. As far as I can fathom, Symfony2 validators only validate singular fields?
jhogendorn
  • 5,931
  • 3
  • 26
  • 35
4
votes
1 answer

Symfony 2 : Generate entities from multiple databases

Here is my config file: # Doctrine Configuration doctrine: dbal: default_connection: flux connections: flux: driver: %db_flux_driver% host: %db_flux_host% port: …
Yoot
  • 657
  • 2
  • 14
  • 26
4
votes
0 answers

Understanding Ef Core's ChangeTracker with OwnsOne configuration

Using EF Core 5 and the ABP framework I have an entity of type System which has a owned type Property. Property itself is not an entity cause it has no identifier, just a value and a default value property: public class System :…
4
votes
1 answer

How to tell XML parser to ignore missing entities

How can you tell an XML parser to ignore entities that are referenced but not declared? I am getting exceptions like this: org.xml.sax.SAXParseException: The entity "alpha" was referenced, but not declared. What I want is for the parser to…
Paul Reiners
  • 8,576
  • 33
  • 117
  • 202
4
votes
1 answer

Tool to generate classes from Database stored procedures

I have a database I need to access using stored procedures. So for each stored procedure's return type, I want to create a entity. Are there any tools pout there that can generate these entity classes for me? preferred even a tool that can generate…
R. van Twisk
  • 434
  • 6
  • 14
4
votes
4 answers

Naming convention: singular vs plural for classes describing entities in PHP

I think that the standard practice to name tables in MySQL is to use plural names. The classes refering to those tables should also be plural? For example, imagine that you have a table called Users, that is used for authentication purposes. This…
rfc1484
  • 9,441
  • 16
  • 72
  • 123
4
votes
0 answers

How do i add entities to the entitycollection of my XML document?

I need to add a "!ENTITY" field to my document but I can't seem to find the right way to do it. Basically my code currently produces the following result :
AMoraru
  • 41
  • 2
4
votes
5 answers

.NET .ToList function is WAY WAY too slow

We're having alot of troubles here with the .ToList command, it's used in VB.NET with a MVC ASP.NET web project. We have ~2000 entries in our database, we use a LINQ command to SELECT and ORDER the 2000 entries. The result is transformed into a…
Tommy Dubé-Leblanc
  • 317
  • 1
  • 7
  • 20
4
votes
4 answers

Case with doctrine2, symfony2 and postgresql entities

I have a problem with doctrine2 in symfony2 app with postgres database. I get error: SQLSTATE[3F000]: Invalid schema name: 7 ERROR: schema "main" does not exist Problem is that my schema is Main not main. When I rename it, similar thing happends…
umpirsky
  • 9,902
  • 13
  • 71
  • 96
4
votes
3 answers

The namespace 'x' already contains a definition for 'FixupCollection'

Everytime I update my entity model (by right-clicking on the .edmx file and selecting 'update model from database') it creates a new model.tt file (which winds up being named model1.tt, etc) which then generates this error. I then delete model1.tt…
KevinDeus
  • 11,988
  • 20
  • 65
  • 97
4
votes
0 answers

Google cloud datastore + golang + embedded entities

I've been working on a package for API dev facilitation, that validates input data (according to a schema structure, mapping each field name to a value valdator/formator etc) ... I am sad to see that datastore does not want my…
4
votes
1 answer

Creating a one-to-many relationship in Yii2

Let's say we have two entities: User and Post. In my understanding, in order to have a one-to-many relationship between User and Post, you need to do the following: class User { ... public function getPosts() { return…
jarvan
  • 449
  • 3
  • 9
  • 25
4
votes
1 answer

Doctrine Mapping in Symfony2 using YAML

I have a question regarding YAML configuration of Doctrine in Symfony2. I have created an entity via "doctrine:generate:entity", and chose YAML as the mapping format. This didn't add any metadata on ../Entity/"MyEntity".php, which would allow me to…
Ivancodescratch
  • 405
  • 4
  • 14
4
votes
2 answers

What are the advantages or disadvantages of using dbml for linq2sql queries?

I am currently reading Pro Asp.Net MVC, and they are building all of their linq2sql entity classes by hand, and mapping them with the linq mapping attributes. However, everyone else I see (from google searches) talking about linq 2 sql seem to be…
KallDrexx
  • 27,229
  • 33
  • 143
  • 254
4
votes
3 answers

DOCTYPE RSS & HTML entities

I have an "ldquo", "rdquo" and several other entities under my RSS feed. Seems like if I add %HTMLspec;…
Mike