Questions tagged [doctrine-1.2]

Doctrine 1.2 is a PHP (5.2.3+) ORM. While Doctrine 2.0 uses the Data Mapper pattern, Doctrine 1.2 uses the Active Record pattern.

Doctrine 1.2 is a PHP (PHP 5.2.3+) ORM. While Doctrine 2.0 uses the Data Mapper pattern, Doctrine 2.0 uses the Active Record pattern. The Doctrine project is a collection open source libraries and tools for dealing with database abstraction and Object-Relational Mapping written in PHP.

Useful links

388 questions
0
votes
1 answer

Extending Doctrine_Query

I wantend to create a complex grouping using doctrine query and I used Snippets: Snippet Doctrine custom grouping $q = myDQ::create() ->from('Some s'); It gives me a mistake: Strict Standards: Declaration of MyDq::create() shuld be compatible…
0
votes
1 answer

stop doctrine from fetching related entities

When usually fetching an entity from database with doctrine, you get all the related entities as actual classes, which causes a huge JOIN query, if you have lots of relations. But sometimes I just want to get the actual object, not all the…
Johannes Klauß
  • 10,676
  • 16
  • 68
  • 122
0
votes
1 answer

doctrine 1.2 performance, creating a large number of records (~5000)

Assuming User is a model which extends Doctrine_Record, consider the below (arbitrary) code that creates 5000 user records. $conn->beginTransaction(); for ($i = 1, $i < 5001, $i++) { $user = new User(); $user->some_field = $i; …
Nada_Surf
  • 616
  • 1
  • 7
  • 19
0
votes
1 answer

doctrine native sql query update

I need help. I need to get the result of a update sql query using doctrine 1.2 I googled and I found a way to make a native sql query using doctrine $preparequerystring = "UPDATE mdw_reportes_operacion SET mmaplicado = 2.742495126705653 WHERE id =…
chepe263
  • 2,774
  • 22
  • 38
0
votes
1 answer

Issues with FK relations. Doctrine

Doctrine 1.2.4, PHP 5.3.3 tables profile, stream, event fk:event -> profile many-to-one fk:event -> stream many-to-one Stream $this->hasMany('modelEvent as Events', array( 'local' => 'id', 'foreign' =>…
0
votes
2 answers

In Doctrine 1.2, how do I access glue object properties in a many-to-many relationship?

I have an Article model and a Photo model, and I am currently using a query like this to join the two: $q = Doctrine_Query::create() ->from('Article a') ->leftJoin('a.Photo p'); For binding them together, I have an ArticlePhoto model.…
Nils
  • 780
  • 5
  • 16
0
votes
1 answer

Output escaping in Symfony

I have a Symfony 1.4 and Doctrine 1.2 project running and have a problem with output escaping in one of my DB calls. The thing is, I am not retrieving a PHP object in my Doctrine query, but rather an array in PHP. The reason why I am doing this is…
user1020069
  • 1,540
  • 7
  • 24
  • 41
0
votes
1 answer

Doctrine query in Symfony 1.4, not sure what I am doing wrong here

I have a query that reads like this: $fields = Doctrine_Core::getTable('model_1')->findByColumnId($id); took a var_dump on fields, and it retrieves data as it should ; next up, I do this foreach($fields as $field) { …
user1020069
  • 1,540
  • 7
  • 24
  • 41
0
votes
1 answer

Doctrine 1.2 + Zend 11.11: Define where generated classes will be saved

I have decided to adopt this directory structure in Zend: application doctrine models base schema //other Doctrine directories controllers models services views And I have set this as the…
Bez Hermoso
  • 1,132
  • 13
  • 20
-1
votes
1 answer

sfDoctrineForm - How can i check if the object in an embedded form exists and relate it to the new parent object instead of creating a new one?

Im working on a user registration form that involves 3 different objects, The user, member profile, and member organization. Im trying to embed all these into a single registration form like User > Member > School. The basic implementation of this…
prodigitalson
  • 60,050
  • 10
  • 100
  • 114
-1
votes
1 answer

Integration Doctrine 1.2 with Zend framework 2

I tried to integrate Doctrine 1.2 in Zend 2 by myself; but in the FamilleController.php i have this error : Fatal error: Class 'Famille\Controller\Doctrine_Core' not found in…
Mimouni
  • 3,564
  • 3
  • 28
  • 37
-1
votes
1 answer

Override execute() function to use a predefined query

I have a symfony application with several tables (or objects) that are associated with a place. Sometimes, throughout the app, I have to make some complex filtering (queries) to those objects based on the current place the user is navigating. My…
pjamfaro
  • 23
  • 1
  • 6
1 2 3
25
26