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.
|
|
|
Validation minlength and empty
|
| |
Using the minlength validator works fine.
But how to use Doctrine validation minlength only if a value is
entered, allowing Null,
Example:
check only for minlength of a name if a name is entered.
|
|
mssql varbinary
|
| |
I'm using mssql and doctrine. Doctrine can create the associated
record and save the data to the db but I'm unable to read the data
back from the db. I've tried every combination of data types and
lengths that I can think of with blob and null as the assumed correct
combo.
Any help would be appreciated.... more »
|
|
many-tomany relations with more than two tables
|
| |
Hi,
I try to configure an yml file to represent a relation between more
than two tables. I don't know how to do that.
Here is the problem :
1 user works in many departments
1 user hasMany offices
1 user hasMany missions
1 user hasMany phoneNumbers
The thing is that each association is unique, I want that in my... more »
|
|
Self-hasMany
|
| |
Hi,
I have a model named "User"
<?php
class User extends UserBase
{
public function setUp()
{
$this->hasMany('User as Friends', local(
'local' => 'first_user_id',
'foreign' => 'second_user_id',
'refClass' => 'FriendsRelation',
);... more »
|
|
How to alter in get and set for the database
|
| |
I want to know how to alter a variable of an record when i retrieve or
when i save it to database, cause mutator does not act when i fetch a
record from the db, it only act when i explicitly set the variable.
Mutator act
ex. $record->value = "A";
|
|
Default values and Proxies
|
| |
Hi!
I'd like to use Doctrine 2.0 and its Proxy features.
- - - - 8< - - - -
$userId = 31; // e.g. from $_REQUEST
$user = $em->getReference('Entity\User ', $userId);
// $em->flush();
$a = new Address();
...
$a->setUser($user);
$em->persist();
$em->flush();
- - - - 8< - - - -
Now if the User class looks like this:... more »
|
|
Problem regarding Single Table Inheritance
|
| |
I was testing single table inheritance and a class hierarchy and a
table described below.
Now, I assumed that
$module = $em->find('Module', 1);
would result in an object of class SubModule, just as with class table
inheritance, but it results in an object of class Module.
Is this correct behaviour, am I forgetting something, or is this a... more »
|
|
Does Doctrine 1.2 support polymorphic associations?
|
| |
Hello,
I have trouble getting polymorphic associations to work in Doctrine
1.2, and I just realized that this is not a feature explicitly
mentioned in the documentation (just something I expected to work).
Scenario is simple: I have a class hierarchy of classes PartA, PartB
extends PartA, PartC extends PartB, mapped via Single Table... more »
|
|
|