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

Doctrine - ModelClassName not found

I am new to doctrine(using version 1.2) and following the steps given in the documentation manual. I've installed and configured it perfectly. But i have a problem while working with models. I have followed each and every step and have successfully…
Sriniwas
  • 505
  • 2
  • 6
  • 21
0
votes
1 answer

How to set relations in Doctrine 1.2 for mapped through table?

Tables: tbl_user(id, name) tbl_group(id, name); tbl_user_group(user_id, group_id); If there were all three classes generated User,Group,UserGroup. How should i setup the relations in User or Group so that they are mapped through the user_group…
Keeper Hood
  • 594
  • 5
  • 17
0
votes
2 answers

symfony 1.4 how to globally unset, hide or make read only a form widget?

In my application I have a lot of modules and a lot of forms with their own widgets. I have been trying to Globally 'unset', 'hide' or 'make read only' a widget. I know that its possible to do it for one widget in the configure() function of the…
xtrm
  • 966
  • 9
  • 22
0
votes
1 answer

Doctrine 1.2 hasOne overwrites hasMany Relation

In a Doctrine 1.2 project we've got a User User: columns: id: type: integer(4) autoincrement: true primary: true payment_method: type: integer(4) relations: DefaultPaymentMethod: class: PaymentMethod …
0
votes
1 answer

Error using _redirect function on ubuntu

I am developing a system in Zend Framework and I implemented user/rol authentication using Zend_Auth for security and it work receiving user/password information and return the Model User with each user's rol. In my global layout, I have a big…
Guido
  • 103
  • 12
0
votes
1 answer

symfony many to many

I'm looking at creating the following scenario. I have many templates I have many users (sfGuardUser) I want it so when I edit a template, I can assign many users to a particular. Am I correct in thinking I'll need 3 tables in my…
user789122
  • 480
  • 5
  • 12
  • 25
0
votes
1 answer

Doctrine 1.2/Symfony 1.4 not generating proper foreign-key relationships?

I've inherited a Symfony 1.4/Doctrine 1.2 application that I have to maintain. I am trying to make some changes to the schema.yml file and generate new models and sql defns from it, but for some reason, my foreign key relationships are not being…
Eric B.
  • 23,425
  • 50
  • 169
  • 316
0
votes
4 answers

How to destruct an object in symfony 1.4?

Possible Duplicate: php/symfony/doctrine memory leak? I need to know if there is a way to destroy an object in symfony 1.4, because I have a cicle for that insert on database. foreach ($array_data as $payroll_employee) { $discounts = new…
JERC
  • 1,584
  • 3
  • 17
  • 38
0
votes
1 answer

Doctrine Query whereIn and orWhere

My query is this : $q = Doctrine_Query::create() ->from('plans p') ->whereIn('c.centerid',$centers) ->andWhere('p.agecategory = ?', $ageType) ->andWhere('p.type = ?', '2') …
plamen
  • 304
  • 1
  • 2
  • 11
0
votes
1 answer

Doctrine: merge 2 requests in 1

I would like to merge these 2 requests in 1 but I have no clue on how to do this. Any idea ? $productsCount = Doctrine::getTable('Product') ->createQuery('p') ->where('p.store_id = ?', $store_id) …
MaximeBernard
  • 1,090
  • 1
  • 19
  • 33
0
votes
1 answer

Symfony 1.4 Merge 2 of the same object and update the old record

I have the following problem. I'm having an object which I retrieved from the form, and I compare the results to the database which has an older version of form saved as an InspectionReport object. When there is an older version of the form, merge…
CE_REAL
  • 384
  • 5
  • 13
0
votes
0 answers

Subqueries in Doctrine 1.2 DQL as FROM

Ok so the big deal is to get the rows in a mysql table that have another related row in the same table given some conditions. This table is like an activity log, so i want to notify someone that "some guy" leaved his group, but i only want do the…
R01010010
  • 5,670
  • 11
  • 47
  • 77
0
votes
1 answer

Class must be a child class of Doctrine_Record error on php symfony doctrine:insert-sql

I have a problem generating my tables using the command: php symfony doctrine:insert-sql It returns me the following error: >> doctrine creating tables Class "Complaint" must be a child class of Doctrine_Record PHP Fatal error: Call to a…
CE_REAL
  • 384
  • 5
  • 13
0
votes
1 answer

How do I make a query return nothing when there are no conditions?

Possible Duplicate: How do I make a query return nothing when there are no conditions? If I have a query,I don't want any results returned when it isn't provided with any WHERE clause information. In simpler terms, how do I make a query…
Alexander Trauzzi
  • 7,277
  • 13
  • 68
  • 112
0
votes
1 answer

How to make Doctrine lookups like Doctrine_table->find, ->findby* use the query/results cache (doctrine 1.2)

For the first time I have set up a results cache in doctrine 1.24 by applying the following code: $servers = array( 'host' => 'localhost', 'port' => 11211, 'persistent' => true ); $cacheDriver = new Doctrine_Cache_Memcache( …