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.

copy Document
 
Notifications
Clear all

copy Document

8 Posts
2 Users
0 Reactions
8,162 Views
(@djackjack)
Posts: 49
Active Member
Topic starter
 
[#1206]

hi,

I would like to know where you manage the copies of documents and documentVersions?


 
Posted : 11 Jun 2013 18H01
babynus
(@babynus)
Posts: 14954
Main Contributor Admin
 

Like any other object, in :
/model/persistence/SqlElement.php->copySqlElement()


 
Posted : 13 Jun 2013 12H33
(@djackjack)
Posts: 49
Active Member
Topic starter
 

Thank you but I will wish a little more information about how to insulate the case document because I think there is a problem over there.

Indeed, when you copy a version, the version id is copied too, while for a new document version should start from 0.

what is the field "IsReF" Document Object?


 
Posted : 13 Jun 2013 13H14
babynus
(@babynus)
Posts: 14954
Main Contributor Admin
 

So you'll probably find what you expect in the save() function of each dedicated class (/model/Document.php and /model/DocumentVersion.php) that extend the default save() function called by the copy() function (in /model/persistence/SqlElement.php)


 
Posted : 13 Jun 2013 13H44
(@djackjack)
Posts: 49
Active Member
Topic starter
 

Is there a way to know if the save () function is called when a copy or during normal processing?


 
Posted : 13 Jun 2013 16H18
babynus
(@babynus)
Posts: 14954
Main Contributor Admin
 

It is always : it is the only way to save data to database.


 
Posted : 13 Jun 2013 16H46
(@djackjack)
Posts: 49
Active Member
Topic starter
 

ok thanks.

what is the field "IsReF" Document Object?


 
Posted : 13 Jun 2013 17H09
babynus
(@babynus)
Posts: 14954
Main Contributor Admin
 

isRef is not in the Document object but in the DocumentVersion object.
It indicates that this version is the "referent" version (last approved).


 
Posted : 13 Jun 2013 17H23
Share:

Scroll to Top