Questions tagged [doctrine-inheritance]

6 questions
3
votes
2 answers

Fixtures and inheritance in Symfony

I have a database schema in Symfony like this: Persona: actAs: { Timestampable: ~ } columns: primer_nombre: { type: string(255), notnull: true } segundo_nombre: { type: string(255) } apellido: { type: string(255),…
Tere
  • 245
  • 1
  • 3
  • 14
1
vote
2 answers

Doctrine inheritance. Is there an easy way to get all child classes/tables for using them in a select field in symfony forms?

I just started to use symfony 1.4 and Doctrine. (Used 1.0 - 1.2 + Propel a lot before). I thought to give Doctrine a try, because of the fast and huge Development process in the past. Thanks to jwage ;-) Im using Table Inheritance. This is a…
1
vote
1 answer

Doctrine inheritance not inserting record into parent table

I've got the following database structure: Account: columns: email: string(255) name: type: string(255) UserRegistered: columns: email: type: string(255) email: true …
Andrei Serdeliuc ॐ
  • 5,828
  • 5
  • 39
  • 66
0
votes
0 answers

Edit form with inherited class: Unknown column 't0.id' - Symfony

so I'm working on a symfony project in which I'm using class inheritence: I have three main entities: ActeursLocaux-> parent class, Entreprise-> child class and Association-> child too. I have the following problem: when I create an Entreprise, I…
melione
  • 1
  • 2
0
votes
2 answers

Symfony framework - check database entry existence

Using symfony framework, which code is best to query database table to check if entry is already there? I need query like this: $q = $this->createQuery('t') ->where('t.email = ?', $email) ->andWhere('t.type = ?','newsletter');
Almas Adilbek
  • 4,371
  • 10
  • 58
  • 97
0
votes
1 answer

How to set up inheritage child entity as UserInterface with Symfony2

I have a database model with inheritage, using the "Class Table Inheritance" model of symfony2. An Employee is an abstract class, the top-level inheritance model. A Secretary is a child extending Employee. A Technician is also a child extending…