Questions tagged [ORM] (308)

5
answers

The best ORM for C#

A problem essence in the following: you want to store in the database information about the state of the object (for example, monitor the valve at the pumping station of the second lifting). Parameters for the observed unit can be a lot is temperature, vibration, currents, percent of rotation. In addition, you must keep the...
Caterina74 asked October 14th 19 at 12:29
1
answer

How to get rid of duplicate joins s at the intersecting ForeignKey in Django?

Noticed one unpleasant thing. Suppose there is a model that linked the other two have the same ForeignKey.class File(models.Model):<br> #some stuff<br> pass<br> <br / > class ServerFile(models.Model):<br> <b>file = models.ForeignKey('File')</b><br> #some stuff<br> <...
Darion.Daniel asked October 14th 19 at 11:33
1
answer

Validation Kohana 3.1 + Standard ORM

Show by example how you validitate data when creating two related models. Introduction: There is a user model ORM and model ORM user_contacts. The idea is all the validation, filters, we need to describe the patterns using function rules() and function filters(). To catch the validation errors we have using the try{}catch()...
lucy35 asked October 10th 19 at 11:45
6
answers

ORM and changes to the object in different places in your code

Suppose there is some system database. This system has three entities: user (User), — transaction (Transaction), account (Account). They are connected so that the user and the transaction reference on the account foreign key. To support this all we want using any ORM. In my case is the Django ORM. Next, let's suppose ...
Garrick.Schneider asked October 10th 19 at 06:48
2
answers

Where to find an article about creating your own ORM

I remember on habré article about the creation of the ORM. The article was unique in capacity. But I read from the phone and the bookmarks are not retained. In fact it was the introduction to the object model and structure of tables (5-6 pieces) If you can remember and find? Or at least help to choose the best article in th...
Ova.Strosin asked October 10th 19 at 00:43
6
answers

Work with the database in OOP applications on php 5.3

Tell us who's using what for working with the database (MySQL)? Use ORM? If so, what? If not, how to solve the problem of the relations many-to-many via a third table? Whether you create a third table object? I ask, because is not the first week unsure what to choose. Everywhere recommend Doctrine. Used it for my bike a y...
aida.Predov asked October 10th 19 at 00:32
1
answer

Generator model classes (and/or mappers) for Zend Framework

Are there any solutions ready to generate model classes with CRUD functionality (create, read, update, delete) or some ORM mappers for applications implemented on library Zend Framework, SQL database dump, similar to how it is implemented, for example, in Yii framework?
Kameron32 asked October 9th 19 at 20:04
1
answer

What is ORM in msn.com?

Yesterday (may 24) at devcon talked with Eugene Chigirinskiy in between reports. He mentioned the library, which they use to work with databases. Who was there (or who were not, but you know), please email me.
Manley56 asked October 8th 19 at 05:12
3
answers

Relationship entity (entities) in Doctrine2 ORM

For a long time wrote the access layer to the database level SQL queries. Now decided to try to jump on the ORM. In particular Doctrine2. There is one conceptual misunderstanding part of the process of working with entities. Example: try {<br> $user = $entityManager->find('User', 1);<br> $user->setNam...
Frida.Conroy asked October 7th 19 at 21:55
2
answers

Lightweight alternative to ActiveRecord?

I remember there was an article, perhaps even on habré about lightweight ORM for Ruby. Similar on functionality with AR. What kind of Scheme? Can't find can't remember. Could you tell me?
daisha_Effer asked October 7th 19 at 21:05