setProject() public method

Sets the project.
public setProject ( Project $project = null )
$project Project The project to set
コード例 #1
0
ファイル: Project.php プロジェクト: fulcrum3d/PartKeepr
 /**
  * Removes a Project Attachment
  *
  * @param ProjectAttachment $projectAttachment An attachment to remove
  */
 public function removeAttachment($projectAttachment)
 {
     $projectAttachment->setProject(null);
     $this->attachments->removeElement($projectAttachment);
 }
コード例 #2
0
ファイル: Project.php プロジェクト: partkeepr/PartKeepr
 /**
  * Removes a Project Attachment.
  *
  * @param ProjectAttachment $projectAttachment An attachment to remove
  */
 public function removeAttachment($projectAttachment)
 {
     if ($projectAttachment instanceof ProjectAttachment) {
         $projectAttachment->setProject(null);
     }
     $this->attachments->removeElement($projectAttachment);
 }