[symfony-users] How to set enum values?

2009-05-15 Thread joshuacoady
This is my schema: EntryData: columns: id: type: integer primary: true autoincrement: true notnull: true type: type: enum values: [text, xml, html] notnull: true What's a working example of code for how I can create an object of type

[symfony-users] Re: Fatal error: Call to a member function end() on a non-object in ... Hydrator/RecordDriver.php

2009-05-13 Thread joshuacoady
...@googlegroups.com] On Behalf Of joshuacoady Sent: 13 May 2009 03:25 To: symfony users Subject: [symfony-users] Fatal error: Call to a member function end() on a non-object in ... Hydrator/RecordDriver.php I'm getting the following error and cant figure out why. Fatal error: Call to a member

[symfony-users] Is there a better way to find a related record other than looping?

2009-05-13 Thread joshuacoady
The schema for this is below, but say I'm working with the Entry object and the query that loads the Entry object also loads the related EntryMeta at the same time. Now, I want to find the Entry's MetaData record that has a particular value for type. Is there a better way to do this than to loop

[symfony-users] Fatal error: Call to a member function end() on a non-object in ... Hydrator/RecordDriver.php

2009-05-12 Thread joshuacoady
I'm getting the following error and cant figure out why. Fatal error: Call to a member function end() on a non-object in .../ Doctrine/Hydrator/RecordDriver.php on line 51 The relevant code in that file is: public function getLastKey($coll) { $coll-end(); return