Forum

Create a project
 
Notifications
Clear all

Create a project

3 Posts
2 Users
0 Reactions
3,298 Views
(@djackjack)
Posts: 49
Active Member
Topic starter
 
[#1155]

Hello,
I made a new version of VX.XX and I would like to create a specific project as a test name.

I wanted to create in the maintenance.php in a state file (if ($ currVersion <"VX.XX") ...) and I made a new project and I filled out the name, custid, idle , idUser, doneidProjectType, codeType, idstatus and finally I called the save function.

Only when I go to see if the project was created, I find not.

There is a field that I have not met that prevents its creation?
There is another way to create the project (always in coding)?


 
Posted : 10 May 2013 15H03
(@babynus)
Posts: 14952
Member Admin
 

Hi,
It seems you did it the right way.
To really know what is happening, replace

$project->save();

with

debugLog($project->save());

You will then have result in log file, and will know why insert did not work.


 
Posted : 10 May 2013 17H37
(@djackjack)
Posts: 49
Active Member
Topic starter
 

Ok Thanks


 
Posted : 10 May 2013 17H41
Share:

Scroll to Top