property name="mySetting" type="coldbox:setting:mySetting"
persistent="false";
...and...
property name="mySetting"
inject="coldbox:setting:mySetting" persistent="false";
...didn't work for me :-(
What scope should the var be posted into? Variables, right?
Well I didn't see it in there but there was an [empty string] variable
called "mySetting" in the properties of the THIS scope???
> --
> You received this message because you are subscribed to the Google Groups
> "ColdBox Platform" group.
> To post to this group, send email to col...@googlegroups.com
> To unsubscribe from this group, send email to
> coldbox-u...@googlegroups.com
> For more options, visit this group at
> http://groups-beta.google.com/group/coldbox
> For News, visit http://blog.coldbox.org
> For Documentation, visit http://wiki.coldbox.org
I have already implemented...
this.ormSettings = eventhandling = "true"
this.ormSettings = eventhandler = "model.ORMEventHandler"
...and have this in my model.ORMEventHandler.cfc...
component extends="coldbox.system.orm.hibernate.EventHandler"{}
I then take it, from what you're saying, that if I use ORMService.new() I
can't make use of postLoad() or any of the other event methods.
So if that is the case how can I access a simple custom setting from within
my entity?
Ciao for now,
Richard
Hi Luis, I think I prefer the 2nd approach.
On 5 Jun 2010 17:08, "Luis Majano" <lma...@gmail.com> wrote:
There are several approaches I am thinking at the moment due to this failure of CF to fire an interceptor on entity creation. one is to treat all entity creations via a service layer that either talks to the base ORM services in coldbox or custom ones. My approach is to the base ORM service and I see two approaches and need you guys input.
1) Have another property for the service which denotes a flag that all new entity creations via the service layer will be wired via DI in wirebox.
property name="entityAutowire" and it will default to FALSE.
If this property is set to true, then the NEW() methods or NEW() dynamic methods will create and then do DI on the entities.
2) Have another special argument in the New() method: autowire = false, that if passed true it will autowire the entity created.
So what approach makes sense to everybody, I have a preference but I would like to see the opinions of you guys first.
Luis F. Majano
President
Ortus Solutions, Corp
ColdBox Platform: http://www.coldbox.org
Linked...
On Fri, Jun 4, 2010 at 6:19 AM, gratzc <gra...@compknowhow.com> wrote:
>
> Richard,
>
> You can fire...
--
--
You received this message because you are subscribed to the Google Groups "ColdBox Platform" group.
To post to this group, send email to col...@googlegroups.com
To unsubscribe from this group, send email to coldbox-u...@googlegroups.com
For more options, visit this group at http://groups-beta.google.com/group/coldbox