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
0 answers

How to do polymorphic associations in Doctrine 1.2?

Is it possible to do polymorphic associations with doctrine 1.2 (!) in symfony 1.4? I have, for example, the following in my schema.yml: alBillingElement: actAs: Timestampable: columns: id: {type: integer(11), primary: true,…
Dominik Goltermann
  • 4,276
  • 2
  • 26
  • 32
0
votes
2 answers

Django: change foreignkey constraint name

I have a mysql database that was generated by doctrine/symfony1.4 and I require a separate django 1.4 project to reference existing tables on the same mysql database. The database is shared by many client facing UIs and cannot be migrated or…
user257543
  • 881
  • 1
  • 14
  • 35
0
votes
1 answer

Symfony 1 trim all spaces of input fields

I'm running an application with Symfony1/ Doctrine1. Is there a simple way to trim all spaces either end of single line input fields? I'm using largely default fields and default admin modules.
jdog
  • 2,465
  • 6
  • 40
  • 74
0
votes
1 answer

Symfony1.4 and Doctrine1.2 setting and getting child elements in execution time

I'm using Symfony1.4 and Doctrine1.2 to create children objects and print them in execution time. The problem is that I always get the children objects from the first query. I have the following schema: Parent: id name Child: id parent_id …
tixastronauta
  • 404
  • 4
  • 17
0
votes
1 answer

How to Create proxy classes in doctrine

I'm using doctrine orm (v2) to my project but i'm sticking with generate proxy classes. so How to create proxy classes in doctrine. any body please help me this issue. Thank you,
dinesh Kumar
  • 61
  • 4
  • 16
0
votes
1 answer

Pass an object to symfony 1 doctrine form

I have an autogenerated form, that extends BaseFormDoctrine. What I want is to initialize this form in an action and pass to the template as a variable. The problem is that form requires certain object to be passed. How to do this?
Vit Kos
  • 5,535
  • 5
  • 44
  • 58
0
votes
1 answer

Symfony 1.4- Doctrine Soft Delete Functionality

I want to override "soft delete" functionality in symfony 1.4-Doctrine ORM. I got the file path: lib/vendor/symfony/lib/plugins/sfDoctrinePlugin/lib/vendor/doctrine/Doctrine/Template/Listener/SoftDelete.php But i am not able to override the same…
0
votes
1 answer

Doctrine migration couldn`t find non-existed class

I use doc:generate-migrations-diffto generate migration classes located in lib/migrations/. You already might know, that doc:generate-migrations-... tasks create some files in tmp directory. I had some problems with it and i delete all doctrine help…
kirugan
  • 2,514
  • 2
  • 22
  • 41
0
votes
1 answer

Symfony 1.4 Doctrine update with inner join

I'm going to write MySQL query like follow query in doctrine. UPDATE vehicle a INNER JOIN vehicle b ON a.id = b.id SET a.total_view = b.total_view+1 WHERE a.id=1; I tried in doctrine like follow. But it doesn't work. Is there any solution for…
Thurein Soe
  • 178
  • 3
  • 8
0
votes
1 answer

Select only specific relation of relatiojn Doctrine 1.2

I have relation of relation of relation query thus and i want to select only the most recently created record for table CancellationRequest c. Anyone any idea if this is/should be possible and how? Doctrine_Query::create() …
Tofuwarrior
  • 669
  • 9
  • 21
0
votes
0 answers

Can't get doctrine-generated form to update entity

I've created an entity that I can't update using doctrine-generated form. Here's an action: public function executeEdit(sfWebRequest $request) { $this->forward404Unless($id = $request->getParameter('id'), "Required parameter 'id' must be…
danio1024
  • 76
  • 4
0
votes
2 answers

Doctrine 1.2, How to build database on web host?

I have my website ready on the localhost and use doctrine 1.2 for the database, I want to upload the website to a web host to try it so I changed the parameters (Database, User, Password, Host) of the DNS in the config.php file, but I don't know how…
0
votes
1 answer

Why this schema is generating a relation n:m

I've this schema.yml file (just relevant part): SdrivingMaquina: actAs: Timestampable: ~ columns: idmaquina: { type: integer(8), autoincrement: true, notnull: true, primary: true } idempresa: { type: integer(4), notnull: true } …
Reynier
  • 2,420
  • 11
  • 51
  • 91
0
votes
1 answer

Doctrine_Record_Exception "Couldn't call Doctrine_Core::set()" while try to save form data

I'm having this issue and I can't find what is wrong. I'm trying to update object before execute the form save method and I do as follow (I wrote the whole class just in case): class SdrivingMaquinaForm extends BaseSdrivingMaquinaForm { …
Reynier
  • 2,420
  • 11
  • 51
  • 91
0
votes
2 answers

Create Query with doctrine 1.2 in which table name needs to be from database

Is it any possibility to create query with doctrine (symfony 1.4) in which I defined table name from database (not model class from schema.yml) in from clause? For example: in schema.yml I have model class StaticPage: connection: doctrine tableName:…
user1687107