Hi there,
I join the discussion because I have a problem with those
addXXXColumnQuery.
I want to add some criteria to a table that is in join and I can't
find a correct way to find the alias of that class.
Any idea?
On May 7, 1:20 pm, Richtermeister wrote:
> Hey there,
>
> assuming you're using
Hey there,
assuming you're using doctrine or propel, the autogenerated forms
would be in /lib/forms/base
Daniel
On May 6, 10:48 am, fRAnKEnSTEin wrote:
> Hi there,
>
> Thank you very much for your help:
>
> >"...that is why some filter inputs (like the date filter field for example)
> >have
Hi there,
Thank you very much for your help:
>"...that is why some filter inputs (like the date filter field for example)
>have 2 fields with the same name..."
Nice piece of info!. Ok you suggested me that i can take a look at the
auto-generated forms. I have searched in "cache" folder for the
Hey there,
that is why some filter inputs (like the date filter field for
example) have 2 fields with the same name, that way they get submitted
as an array and you have access to both values in the
addXXXColumnQuery method.
Please look at the auto-generated forms. It's all there.
Daniel
On Ma
Hi,
As i see..i think i can not add few addXXXColumnQuery methods and
create a query in parts. I tell you why. I have 2 "custom inputs", so
if i create 2 addXXXColumnQuery methods, ill end with something like
this:
public function addMyCustomInput1ColumnQuery($query, $field, $value)
{
}
public f
Do you really need all the values together? Can't you just create a
few addXXXColumnQuery methods and create a query in parts?
Example of my filter where I added the choice:
class CommentFormFilter extends BaseCommentFormFilter
{
public function configure()
{
$this->widgetSchema['cmtext'
hi There,
i do not need to make a join just a "select * from where
myCriteriaHere" the criteria is:
(initial_date <= myCustomInput1 and final_date >=
myCustomInput1 )
or
(final_date >= myCustomInput2 and initial_date <=
myCustomInput2 )
or
(initial_date >= myCustomInput1 and fin
Correction, the method name needs to look like this:
public function addXXXColumnCriteria, where XXX is your field name in
camelcase.
for example, I have a custom filter with the field "coupon", and the
corresponding method looks like:
public function addCouponColumnCriteria(Criteria $criteria,
Hey there,
ok, I think I'm following you.
Here's how to go about it:
First, if you're trying to filter on a real date or timestamp column,
then all the work is already done for you.
For example, the created_at/updated_at columns would automatically
cause the filter field that you describe to be c
Hi,
thank you for your answer. Ok i have a module in my backend called
"price". For this module i need to add a custom filter this is: i need
to add to dates, and make a quey based on the dates selected by the
user. So by now as i said before i just configure the generator.yml of
the "price" modul
Hey there,
in sf1.2+, the admin filtering is handled via filter form classes, so
all customization and filter logic should go in there.
The form is not only responsible for displaying and validating the
widgets, but since it extends sfFilterForm it also contains methods
that build a query / criter
11 matches
Mail list logo