1 Sep 2003 09:42
Re: bc notes / todo
Jean-Christophe Michel wrote: >>>Very doubtful. We began to speak of this, it's a very hard way to go >>>if we want to express conditions smartly. >> >>What if on a search page, you only want to search fields determined by >>user input? IE: they search on name,title,description. In another >>search, they search on just name,title.. etc. >> >>The only way to know what fields to search is by looking to Request and >>constructing a condition at runtime. > > > You construct the where clause and replace it in prepared qry > SELECT ... FROM ... %whereclause%; > Of course a consistent way of describing conditions, limits, > groupings... would be great; with xml and corresponding php; > and appropriate translation for each db... > but it's not a simple thing to do. Ahh, I see your scope was _much_ higher. I was thinking more of just a "criteria" object for constructing simple WHERE clauses. I suppose this could be done in StorageSQL, but would break oo. (it needs to do more than just concatenate. %whereclause% is a workaround hack for the most part. The result is right - as in ent2qry just prints the string. But the app currently has to build up a SQL, which breaks all db independence in apps. A base app for handling where clauses then is a good compromise imo. >>>Are you sure we 'll never need another templating system ?(Continue reading)
* phing and modified files
When changing a datasource or an entitymap, bc_ent2* tools
don't rebuild the files if they are not deleted by hand or if source edf
is not changed. Is there a way to handle these dependencies
automatically, or simply to disable the date check and rebuild stupidly
all files ?
Same pb when building project, when you change strings file and not php
source: strings are not used or you have to rebuild.
My solution:
i added
<delete file="${out_file}" />
for each simple target in tools/entity/entity_compiler.xml
and
<echo msg="Deleting all generated files" />
<delete>
<fileset dir="${env.BCHOME}/user/${workspace}/app/${app}">
<include name="schema/*.schema.xml" />
<include name="qry/*.qry.xml" />
<exclude name="qry/*.custom.qry.xml" />
<include name="cls/*.php" />
<include name="form/*.ndf.xml" />
</fileset>
</delete>
in ent2all target.
RSS Feed