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 <[email protected]> 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: [email protected]
> [mailto:[email protected]] 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" <[email protected]> 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 [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> 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 [email protected].
> To unsubscribe from this group, send email to 
> [email protected].
> 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 [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en.

Reply via email to