ORM question
Hello,
I am very new to ORM and wanted to know how i can do the following and display one record without looping an array:
users.cfc
==============================================================
<cfcomponent persistent="true" table="tbl_users">
<cfproperty name="uid" fieldType="id" generator="increment">
<cfproperty name="firstname" ormtype="string">
<cfproperty name="lastname" ormtype="string">
<cfproperty name="username" ormtype="string">
</cfcomponent>
test.cfm
==============================================================
<cfset u = EntityLoad("users", {username = 'test'})>
<cfoutput>
Full Name - #director.getLastName()#, #director.getFirstName()#<br/>
</cfoutput>
when i run this it displays a blank page, but i dump the variable with cfdump i can see it has the right information. Also i loop through it as an array it will also display the results, but since its only one record, is there a way display the result without looping through an array.
