you could probably look at Set::format
http://api13.cakephp.org/class/set#method-Setformat if virtual fields arent
working for you.
Check out the new CakePHP Questions site http://cakeqs.org and help others with
their CakePHP related questions.
You received this message because you are subscri
The thing I hate about virtual fields like this is your code starts becoming
database dependent. For example
public $virtualFields = array(
'full_name' => 'CONCAT(User.last_name, ", ", User.first_name)'
);
would only work if you were using MySQL and not for Postgres users like me.
On Mon, Dec
Tried it and it works great! Thanks.
On Dec 17, 5:26 pm, cricket wrote:
> On Fri, Dec 17, 2010 at 6:25 PM, eldorado2768
>
>
>
> wrote:
> > I am having a lot of difficulty understanding how to get my select box
> > to display properly. I have a table called owners and a related table
> > called b
If you called the virtual field 'name,' wouldn't the automagic take
care of everything else (the select box) from there?
On Dec 17, 8:26 pm, cricket wrote:
> On Fri, Dec 17, 2010 at 6:25 PM, eldorado2768
>
>
>
> wrote:
> > I am having a lot of difficulty understanding how to get my select box
>
On Fri, Dec 17, 2010 at 6:25 PM, eldorado2768
wrote:
> I am having a lot of difficulty understanding how to get my select box
> to display properly. I have a table called owners and a related table
> called buildings with the owner_id as the foreign key. I figured out
> how cakephp looks for a fie
I am having a lot of difficulty understanding how to get my select box
to display properly. I have a table called owners and a related table
called buildings with the owner_id as the foreign key. I figured out
how cakephp looks for a field called name and then if it doesn't find
it will just defaul