setBuiltProject($project); //Set the name of the part to the name of the project $part->setName($project->getName()); //Set the description of the part to the description of the project $part->setDescription($project->getDescription()); //Add a tag to the part that indicates that it is a build part $part->setTags('project-build'); //Associate the part with the project $project->setBuildPart($part); return $part; } }