In TransferObject 'video' manytomany 'dyp' has not been persisted in
the database.
I have a video table that is joined to both a category table and a tag
table
In my transfer.xml category and tag are both manytomany relationships
with the video object
When saving the object, the tags get saved
You are trying to save a video, which has a 'dyp' that has not been
persisted in the database.
This means Transfer doesn't know what PK value to use for the object.
Mark
On Tue, Jan 27, 2009 at 11:40 PM, systemseven
systemsevendesi...@gmail.com wrote:
In TransferObject 'video' manytomany
there are no caching options set in the transfer config, so they're
the defaults.
the cache updates correctly for 1-2 of the objects, but not for most
of the others.
if it helps, i'm updating via Ajax with a Remote Proxy that was
generated with ColdSpring. But this works fine for one of the
It sounds like somehow when you get the transfer bean that you are
saving it is not pulling the cached version. How do you get that bean
and populate it?
The Remote Proxy could be the issue if it is somehow getting setup
with a different instance of Transfer.
Matt Williams
On Jan 27, 8:04 am,
well, the Remote Proxy is using the same beanFactory that is defined
as Application.beanFactory. i though about this too, the thing is, the
one Object that works is using the same Remoty Proxy for its updates
and there are no problems there. it's calling the same function to
update its values as
This is a wild stab in the dark, but is it the browser caching the data? I
once had a similar problem with IE, where I had to append a random value to
the URL of the script my AJAX was calling. I think the latest version of
ColdFire has a feature for debugging ColdSpring Remote Proxy although I've
scope your vars by adding the scope in dot notation. So when you update
your object, instead of objvarname.setProperty()use
scope.objvarname.setProperty()
On Tue, Jan 27, 2009 at 8:56 AM, Chris H 3darkli...@gmail.com wrote:
jonathanburnham: i'm guessing that is it. so how would i go about
Mark,
Makes sense, but I'm not sure how to tell transfer what it needs to
know. Here is the full code from my save function. Maybe that will
help you point me in the right direction.
if(len(trim(arguments.data.id)))
{
thanks anyway man!
i'm at a dead-end and this is a production site that should go online
soon, so any help/suggestions would be welcome. Mark, anyone? ;D
On Jan 27, 3:34 pm, jonathanburnham jonathanburn...@gmail.com wrote:
I can't speak to that. I haven't yet started using the Transfer cache.
Are you using ColdFire to debug?
http://coldfire.riaforge.org/blog/index.cfm/2009/1/25/ColdFire-13172172
--~--~-~--~~~---~--~~
Before posting questions to the group please read:
It sounds like you have more than one instance of Transfer going..
which is why your cache is going all funky, as there is more than one
cache.
I'd put some debugging in place to verify that your model's not
getting re-created.
Mark
On Wed, Jan 28, 2009 at 2:44 AM, Chris H 3darkli...@gmail.com
at some point, if you are using the transfer save method to persist your
objects to the database (and they ARE persisting), you must be referring to
a 2nd instance of the transfer object. Make sure that you only have 1 place
where you create an instance of your transfer object from the transfer
there's nothing to debug really (though i do with Firebug). changing
data via the Remote Proxy/Ajax works fine and the database is updated,
but when i reload the page, the old data is displayed. if i do an ?
init=true i see the correct data. so i'm lost on how to tell Transfer,
without doing an
I'm guessing this is because you are assuming the category (or dyp or
whatever) already exists in the database (your doing a get) but I think
you've got a bug here... is* i *really the value you want to retrieve dyp
with? or should it be item?
for(i=1;i lte
thanks for your replies!
i'm only defining Transfer once in ColdSpring.xml:
bean id=TransferFactory class=transfer.TransferFactory
constructor-arg name=datasourcePathvalue/config/
TransferDatasource.xml.cfm/value/constructor-arg
constructor-arg name=configPathvalue/config/Transfer.xml.cfm/
add singleton=true to your transfer config perhaps? =)
Chris
On Tue, Jan 27, 2009 at 10:56 AM, Chris H 3darkli...@gmail.com wrote:
thanks for your replies!
i'm only defining Transfer once in ColdSpring.xml:
bean id=TransferFactory class=transfer.TransferFactory
constructor-arg
Well, there is just one bean with all the remote methods that's
injected all the external beans it needs.
those external beans all extend an AbstractGateway with a generic
update function. which is why i'm confused, because the object that
works is calling the same thing generic update function
nope, but what that tells me is that indeed you have some place where you
are trying to create another 'instance' of the transfer library. You should
be fine leaving it as application, or digging around and finding where your
other instance is at and change it back. =)
Chris Peterson
On Tue,
I have a situation... Any assistance will be greatly appreciated.
These are my tables:
1) tblAward(awardId,award)
2) tblActor(actorId,name)
3) tblDirector(directorId,name)
4) tblEntityAward(fk_award,fk_parent,year_awarded)
In #4, the fk_parent is the primary key in either tblActor or
Would this make sense??
package name=award
object name=award table=tblAward
id name=awardId type=numeric /
property name=award type=string column=award /
/object
object name=PerformerAward table=tblEntityAward
compositeid
manytoone name=Award /
Not really.
You want something like this (untested since I dont have your DB).
If someone else has a better idea, please chime in.
object name=award table=tblAward
id name=awardid type=numeric /
property name=award type=string /
/object
object name=director table=tblDirector
Just to add some concrete examples, here is a function I have in a model
object that uses TQL to retrieve a query of users (optionally only active
users), joined to the security table so that I know what groups a user is
part of:
cffunction name=getAllUsers access=public output=false
Thank you Sean,
I noticed that you didn't declare the association table, even when
there is a composite key. And you use the year_awarded to order by
array by.
How do you display the year_awarded? Is it included in the collection?
--~--~-~--~~~---~--~~
Before
The primary reason is because Transfer is not a query abstraction tool but
an object-relational mapping tool. It is primarily meant to deal with
objects. The fact that under the hood the state of the objects is stored in
database tables is meant to be hidden.
On Tue, Jan 27, 2009 at 4:34 PM,
Again Thank you Brian...
Can't get clearer than that :)
--~--~-~--~~~---~--~~
Before posting questions to the group please read:
http://groups.google.com/group/transfer-dev/web/how-to-ask-support-questions-on-transfer
You received this message because you are
25 matches
Mail list logo