Zain Ul Abideen
05/28/2025, 2:39 PMDavid Belanger
05/29/2025, 7:30 PMPeter Amiri
05/29/2025, 7:31 PMPeter Amiri
05/29/2025, 7:51 PMPeter Amiri
05/29/2025, 8:13 PMben
06/10/2025, 12:48 PMinclude / returnAs=structs
in your queries - which is a very cool feature. https://www.bennadel.com/blog/4810-ask-ben-destructuring-complex-queries-into-coldfusion-objects.htmneokoenig
06/11/2025, 9:00 AMben
06/12/2025, 10:48 AMben
06/12/2025, 10:50 AMshowUDFs=false
flag doesn't actually omit functions from teh CFDump
/ dump()
output). But, has been very helpful for me, especially since it works recursively for models in models in models.ben
06/13/2025, 10:25 AMPeter Amiri
06/20/2025, 1:30 PMneokoenig
06/20/2025, 1:44 PMben
06/20/2025, 2:01 PMTim Badolato
06/20/2025, 2:58 PMneokoenig
06/28/2025, 1:02 PMPeter Amiri
06/28/2025, 2:42 PMben
06/29/2025, 3:13 PMben
06/30/2025, 7:32 PMben
07/01/2025, 11:16 AMben
07/01/2025, 6:48 PMdefine(
property = "name",
required = true,
minLength = 0, // can be blank.
maxLength = 100
);
define(
property = "salary",
required = false,
minValue = 0,
maxValue = nullValue(),
onlyIntegers = false
);
... anyone ever try something like this?ben
07/02/2025, 4:43 PM.hasNext()
and .next()
, and would push a row of data into the CFC properties during the iteration. Basically, it would safe on the cost of instantiating a bunch of CFCs for recrord-sets. Maybe there could be a returnAs="ibo"
...... just thinking out loud. This might be something I toy with to see what it looks / feels like.
The main value would be to take advantage of CFC computed methods and association even without having to have a CFC-per-row.ben
07/09/2025, 11:45 PMMapper.cfc
which wraps the mapper()
API and makes a more explicit extension point (for my own convenience methods):
https://www.bennadel.com/blog/4823-customizing-the-router-in-the-cfwheels-coldfusion-framework.htmben
07/10/2025, 10:17 AM$selectClause()
method to monkey-patch a bug fix.
At work, we use the #C06TT5M7V #ColdFusion framework and the Microsoft #C082RPGTZ Server database. In a previous post, I talked about a bug in Wheels that was turning namespaced Models into syntactically invalid MSSQL statements. At the time, I was working around that bug by explicitly writing mystatements (instead of letting the Object Relational Mapper, ORM, write them for me). Last week, however, I realized that I could (dangerously) override one of the Wheels internal methods -SELECT
- and apply the fix globally within my #CFML application. Read more: https://bennadel.com/4813#update-overriding-selectclause$selectClause()
blusol
07/14/2025, 4:09 PMben
07/18/2025, 12:03 PMe()
as an alias for encodeForHtml()
in any of the #CFML or #CFC templates in our application. But, I don't love that functions just show up out of thin air. I'm wondering if I can balance the magic with the convenience by exposing runtime extensions and polyfills using a CFInclude / CFModule mechanic. This would make things more explicit; but, also keep things super simple. Read more: https://bennadel.com/4825ben
07/28/2025, 7:17 PMben
07/28/2025, 7:18 PMunless
might do:
validatesNumericalityOf( property = "userID" greaterthan = 0, unless = "hasErrors()" )
ben
07/28/2025, 7:18 PMunless
works.ben
07/28/2025, 7:19 PMallowBlank
arg is trying to work around this issue. But, I think that would become irrelevant if you had two-phase validation. .... just thinking out loud.neokoenig
07/31/2025, 3:25 PM