[symfony-users] Re: Model with no DB requirements.

2010-02-10 Thread Massimiliano Arione
Just define your object as a class in lib/model.

On 9 Feb, 01:35, Pat Fong pf...@globaldatacompany.com wrote:
 Occasionally I come accross an object that I need in my application
 which doesnt require being saved to the DB.

 I usually define this object through the schema as I would any other
 object and that works fine. I guess the problem I have is that it
 creates unessecary tables in the DB, not a big deal but not as clean as
 I would like.

 Is there any way to avoid this or a better approach that someone could
 suggest ?

 Cheers,
 Pat

-- 
You received this message because you are subscribed to the Google Groups 
symfony users group.
To post to this group, send email to symfony-us...@googlegroups.com.
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en.



RE: [symfony-users] Re: Model with no DB requirements.

2010-02-10 Thread Pat Fong
Thanks Massimiliank,

I did consider doing this but in that in that case I need to write the
whole class from scratch so no getters and setters etc which I was
hoping to avoid.

-Original Message-
From: symfony-users@googlegroups.com
[mailto:symfony-us...@googlegroups.com] On Behalf Of Massimiliano Arione
Sent: Thursday, 11 February 2010 12:02 AM
To: symfony users
Subject: [symfony-users] Re: Model with no DB requirements.

Just define your object as a class in lib/model.

On 9 Feb, 01:35, Pat Fong pf...@globaldatacompany.com wrote:
 Occasionally I come accross an object that I need in my application 
 which doesnt require being saved to the DB.

 I usually define this object through the schema as I would any other 
 object and that works fine. I guess the problem I have is that it 
 creates unessecary tables in the DB, not a big deal but not as clean 
 as I would like.

 Is there any way to avoid this or a better approach that someone could

 suggest ?

 Cheers,
 Pat

--
You received this message because you are subscribed to the Google
Groups symfony users group.
To post to this group, send email to symfony-us...@googlegroups.com.
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
symfony users group.
To post to this group, send email to symfony-us...@googlegroups.com.
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en.



Re: [symfony-users] Re: Model with no DB requirements.

2010-02-10 Thread Gareth McCumskey
So define the object in your schema, run the symfony
propel:build-model (or Doctrine equivalent) and then remove it from
the schema. symfony does not delete previously created model classes
:)

On Thu, Feb 11, 2010 at 6:58 AM, Pat Fong pf...@globaldatacompany.com wrote:
 Thanks Massimiliank,

 I did consider doing this but in that in that case I need to write the
 whole class from scratch so no getters and setters etc which I was
 hoping to avoid.

 -Original Message-
 From: symfony-users@googlegroups.com
 [mailto:symfony-us...@googlegroups.com] On Behalf Of Massimiliano Arione
 Sent: Thursday, 11 February 2010 12:02 AM
 To: symfony users
 Subject: [symfony-users] Re: Model with no DB requirements.

 Just define your object as a class in lib/model.

 On 9 Feb, 01:35, Pat Fong pf...@globaldatacompany.com wrote:
 Occasionally I come accross an object that I need in my application
 which doesnt require being saved to the DB.

 I usually define this object through the schema as I would any other
 object and that works fine. I guess the problem I have is that it
 creates unessecary tables in the DB, not a big deal but not as clean
 as I would like.

 Is there any way to avoid this or a better approach that someone could

 suggest ?

 Cheers,
 Pat

 --
 You received this message because you are subscribed to the Google
 Groups symfony users group.
 To post to this group, send email to symfony-us...@googlegroups.com.
 To unsubscribe from this group, send email to
 symfony-users+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/symfony-users?hl=en.

 --
 You received this message because you are subscribed to the Google Groups 
 symfony users group.
 To post to this group, send email to symfony-us...@googlegroups.com.
 To unsubscribe from this group, send email to 
 symfony-users+unsubscr...@googlegroups.com.
 For more options, visit this group at 
 http://groups.google.com/group/symfony-users?hl=en.





-- 
Gareth McCumskey
http://garethmccumskey.blogspot.com
twitter: @garethmcc

-- 
You received this message because you are subscribed to the Google Groups 
symfony users group.
To post to this group, send email to symfony-us...@googlegroups.com.
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en.