I have a very simple orm mapping.
// account model
component name='Account' persistent='true' accessors='true' {
property name='accountId' ormtype='int' fieldtype='id' generator='identity';
property name='company' ormtype='string' length='20';
property name='password' ormtype='string' length='20';
property name='firstName' ormtype='string' length='50';
property name='lastName' ormtype='string' length='50';
property name='email' ormtype='string' length='100';
}
and I'm trying to populate it
component
{
// default action
public struct function default() {
Account = entityNew('model.Account');
Account.setCompany = 'fraser';
Account.setPassword = 'letmein';
Account.setFirstName = 'Dale';
Account.setLastName = 'Fraser';
';
entitySave(Account);
return(arguments);
}
}
All I get is
A CFC with entityname model.Account could not be found.
I've googled around a bit and only can find error in model or restart cf.
If I do a new model.Account it doesn't error
--
You received this message because you are subscribed to the Google Groups "cf-orm-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cf-orm-dev+...@googlegroups.com.
To post to this group, send email to cf-or...@googlegroups.com.
Visit this group at http://groups.google.com/group/cf-orm-dev?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.