Hi,
I have a smaller problem during install new plugin (Class SqlQuery). During compile, in 40%, step "Updating database schema" says:
Fatal error: Cannot redeclare class SqlQuery in /media/data/www/itop/web/env-production/mediso-add-sqlquery/model.mediso-add-sqlquery.php on line 64
Most likely is a problem in depends..? Or in <parent> tag? Class SqlQuery is new..I dont know what is correct parent..</parent>
datamodel:
<class id="SqlQuery" _delta="define"> <parent>FunctionalCI</parent> <properties> <category>bizmodel,searchable</category> <abstract>false</abstract> <key_type>autoincrement</key_type> <db_table>sqlquery</db_table> <db_key_field>id</db_key_field> <db_final_class_field/> <naming> <format>%1$s</format> <attributes> <attribute id="name"/> </attributes> </naming> .......... .......... </class>
module:
// Identification // 'label' => 'Přidání třídy - SQL Dotaz', 'category' => 'business', // Setup // 'dependencies' => array( ), 'mandatory' => false, 'visible' => true,
I tried yet:
// Setup // 'dependencies' => array( 'itop-config-mgmt/2.0.0', ),
...but without success :(
Oh....so the problem was in name. SqlQuery is reserved...? I changed to SqlDotaz (Dotaz is czech Query :-) ). After change name is works.
But.....I have one a problem yet. I would like to use my new class SqlDotaz WITHOUT field org_id. iTOP requires the field org_id...
thanks
Log in to post a comment.
Hi,
I have a smaller problem during install new plugin (Class SqlQuery).
During compile, in 40%, step "Updating database schema" says:
Fatal error: Cannot redeclare class SqlQuery in /media/data/www/itop/web/env-production/mediso-add-sqlquery/model.mediso-add-sqlquery.php on line 64
Most likely is a problem in depends..? Or in <parent> tag?
Class SqlQuery is new..I dont know what is correct parent..</parent>
datamodel:
module:
I tried yet:
...but without success :(
Oh....so the problem was in name. SqlQuery is reserved...?
I changed to SqlDotaz (Dotaz is czech Query :-) ). After change name is works.
But.....I have one a problem yet. I would like to use my new class SqlDotaz WITHOUT field org_id. iTOP requires the field org_id...
thanks