You cannot post messages because only members can post, and you are not currently a member.
Description:
Doctrine User mailing list. For questions regarding installation and usage of doctrine.
|
|
|
Catch set event
|
| |
Hi I have a new Question.
In my application logic i have to catch every set event on the
records.
I have attached some logic to the set methode which is executed on
update and on insert.
This works very well....
But when I have some related objects for example:
$group->name = "User" // should call group::set(name, 'User') => works... more »
|
|
mysql_fetch_assoc
|
| |
hi,
i'm trying to do queries across multiple tables using DQL and need the
results in a mysql_fetch_assoc style.
Doctrine either hydrates the output into nested objects based on the
relations or throws a zero based index array. I tried with all
HYDRATE_ARRAY, HYDRATE_RECORD, HYDRATE_NONE.
is there some way to use such an option with dql?... more »
|
|
Missing class name
|
| |
Hey guys.
I've created the following schema: [link]
When I run: symfony doctrine:build-all-reload frontend
I get:
...y
...
Missing class name.
Can anyone spot where I'm missing the class name?
Thanks,
Olmo
|
|
wow daring pop songs&
|
| |
wow daring pop songs&
mindblowing glamour videos
flowering garlands smile on your faces
****************************** *****************
[link]
[link]
****************************** *****************
|
|
creating custom / additional fields
|
| |
Hi,
I'd like to have something like a calculated field in my record
object, something that is figured out by php rather than actually part
of the data. I know I can do this with a Listener implementing a
preHydrate call, but is there a simpler way to do it? Seems a bit
convoluted to create a new class just to implement a listener that... more »
|
|
Select expressions
   
|
| |
Hi to all.
Is it possible to use mathematical operations and "extend" the
selected resultset with additional/virtual "fields?
Example:
SELECT *, (product_price * count_product) as sum_price FROM
shoppingcart
Thanks in advance.
Robert
|
|
composite key with unique constraint
|
| |
Hi,
I have a table that has a composite key with a unique constraint.
This is defined on the database level. Is there a simple way to have
Doctrine enforce this on the application level? I could use
validate() logic, but it would be better to simply define it in
setTableDefinition() somehow.... more »
|
|
Sluggable and inheritance
|
| |
Hello,
I am trying to setup a schema like:
Base:
actAs:
Sluggable:
fields: [name]
columns:
name:
type: string(512)
notnull: true
Child1:
inheritance:
extends: Base
type: column_aggregation
keyField: type
keyValue: 1
Child2:
inheritance:... more »
|
|
|