Forum

Welcome to ProjeQtOr new Forum. We migrated old forum to the new website.
You will find all your posts here, with your usual account.
Just one point : you’ll have to reinitialize your password. Use “Lost password” feature.

Filter error with n...
 
Notifications
Clear all

Filter error with new attributes

4 Posts
2 Users
0 Reactions
4,416 Views
(@mdelgado)
Posts: 22
Active Member
Topic starter
 
[#2190]

Hi

I added a few new attributes to project table. All is ok, they appear in project list, and project details, also in their maintenance menu.

But when I try to filter with some of them, I got this message >>>>Fatal error: Class 'idPip' not found in C:wampwwwprojeqtordevtooladdFilterClause.php on line 120

Pls your help

regards

Manuel


 
Posted : 02 Feb 2015 17H06
(@babynus)
Posts: 14952
Member Admin
 

Hi,
It seems you added a field named ididpip.
You should avoid fields name stating with id, as they are expected to be id of corresponding class. In most cases the case of 3rd character is also tested, butnthis is not systematic. You discovered one. Others may exist...


 
Posted : 02 Feb 2015 21H25
(@mdelgado)
Posts: 22
Active Member
Topic starter
 

Hi

For this field "departamento, the name of the filed into project table is "idPip_departamento"

In their class, is id, name, and idle ( I copied it from other)

Maybe the "_" is the problem?
regards

manuel


 
Posted : 02 Feb 2015 21H41
(@babynus)
Posts: 14952
Member Admin
 

Yes, you should avoid _ class names.
And as idXxxx will work with class Xxxx, also avoid _ in such fields names.
PHP class name should respect PascalCase or camelCase.


 
Posted : 02 Feb 2015 22H48
Share:

Scroll to Top