Posted over 3 years ago by jwage
For those of you who are not keen on using the mailing list or irc for getting help with Doctrine, we now have a public Forum, powered by PHPBB3(which is very nice btw). Please contact me at jonwage at gmail.com if you would like a forum for your language added or if you are interested in being a moderator.
Comments (8) [ add comment ]
Posted by Mylith about over 3 years ago.
Great! Waiting for that ;)
symfony doctrine 1.2 multiple relation table with extra field Posted by knightmare about over 2 years ago.
schema.yml
Tuser: columns: username: { type:string(100) } password: { type:string(100) } relations: TuserPhonenumbersss: class: Phonenumber refClass: TuserPhonenumbers local: tuser_id foreign: phonenumber_id foreignAlias: Tusers
Phonenumber: columns:
phone: { type: string(255) }
TuserPhonenumbers: columns: tuser_id: { type: integer,primary: true } phonenumber_id: { type: integer, primary:true } address: { type: string(100) } relations: Tuser: ~ Phonenumber: ~
sfXUsers.yml
Phonenumber: phone1: phone: 5555222222
Tuser: user1: username: testusername password: testpassword TuserPhonenumbersss: Phonenumber: phone1 address: testaddress
database table (tuser_phonenumbers)
tuser_id: 1 phonenumber_id: 1 address: testaddress
i want by using yaml to create a Phonenumber with phone: 5555222222
and assign from the Tuser the relation TuserPhoneNumbers.
Is this possible? Any help would be really appreciated.
zend and doctrine Posted by Mungiu about about 1 year ago.
i am a begginer with this two, but i set up all and started to use doctrine but in my dql i can do this :
$query = new Doctrine_Query(); $query->from('Hoteluri h'); $query->orderby('h.denumire ASC');
it say that can't find Hoteluri class it's working only when i put:
$query = new Doctrine_Query(); $query->from('Application_Model_Hoteluri h'); $query->orderby('h.denumire ASC');
can somebody help me? tanks
sorry Posted by Mungiu about about 1 year ago.
for triple posting but if i hit save appear a blank page and i throught that wasn't posted.
Dead Link Posted by Daniel Moore about about 1 year ago.
This seems to lead to a dead link. Does the forum no longer exist?
Filters on Doctrine Getter Posted by Alinawaz about about 1 year ago.
Hi Guys,
I am new to Symfony/Doctrine so please help me out,
Problem Description:
I am using Symfony-1.4,I have Person table and Email table. Both are linked with One-To-Many relation. I am able to get all emails of particular Person using the following command:
$person->getEmails();
Now I want to put filter on few columns of Email table without writing custom query. So is there any way to do it like
$person->getEmail(EmailFromDate > '27/12/2010' AND EmailFromDate < '30/12/2010');
Is there any way to put filters on getEmail??
Thanks
Ali
error Posted by doctrine user about about 1 year ago.
my error:(Parse error: syntax error, unexpected T_STRING, expecting T_CONSTANT_ENCAPSED_STRING or '(' in D:\mybook\jobapplications\system\application\libraries\Doctrine.php on line 2)
code: Doctrine.php
[php] use Doctrine\Common\ClassLoader, Doctrine\ORM\Configuration, Doctrine\ORM\EntityManager, Doctrine\Common\Cache\ArrayCache, Doctrine\DBAL\Logging\EchoSqlLogger;
class Doctrine {
public $em = null;
public function __construct() { // load database configuration from CodeIgniter require_once APPPATH.'config/database.php';
} }
Doctrine Template Timestampable -> 0000-00-00 00:00 values Posted by David about about 1 month ago.
Hi,
I have a question about the usage of Doctrine Template Timestampable that is making me mad. I have this setup (Doctrine 1.2):
public function setTableDefinition() { ... $this->hasColumn('dateCreated', 'timestamp'); $this->hasColumn('dateUpdated', 'timestamp');
}
public function setUp() { ... $timestampable0 = new Doctrine_Template_Timestampable(array( 'created' => array( 'name' => 'dateCreated', 'disabled' => false, ), 'updated' => array( 'name' => 'dateUpdated', 'disabled' => false, ), ));
$this->actAs($timestampable0);
}
The first time I use the save->() method, everything is ok. The second time, all becomes:
0000-00-00 00:00
Can anybody please help me? Thank you very much in advance!
Davide