Minor - format code

pull/3733/head
Julio Montoya 4 years ago
parent 78055f077c
commit e94cbd7550
  1. 4
      src/CoreBundle/Entity/GradebookComment.php
  2. 8
      src/CoreBundle/Migrations/Schema/V200/Version20180904175500.php
  3. 8
      src/CoreBundle/Migrations/Schema/V200/Version20180928172830.php

@ -6,7 +6,6 @@ namespace Chamilo\CoreBundle\Entity;
use Chamilo\CoreBundle\Traits\UserTrait;
use Doctrine\ORM\Mapping as ORM;
use Gedmo\Mapping\Annotation as Gedmo;
use Gedmo\Timestampable\Traits\TimestampableEntity;
/**
@ -37,15 +36,12 @@ class GradebookComment
protected User $user;
/**
*
* @ORM\ManyToOne(targetEntity="Chamilo\CoreBundle\Entity\GradebookCategory", inversedBy="comments")
* @ORM\JoinColumn(name="gradebook_id",referencedColumnName="id",onDelete="CASCADE")
*/
protected GradebookCategory $gradeBook;
/**
* @var string
*
* @ORM\Column(name="comment", type="text")
*/
protected string $comment;

@ -7,11 +7,13 @@ namespace Chamilo\CoreBundle\Migrations\Schema\V200;
use Chamilo\CoreBundle\Migrations\AbstractMigrationChamilo;
use Doctrine\DBAL\Schema\Schema;
/**
* Track changes.
*/
class Version20180904175500 extends AbstractMigrationChamilo
{
public function getDescription(): string
{
return 'Migrate track_e_exercises, track_e_login';
}
public function up(Schema $schema): void
{
$this->addSql('DELETE FROM track_e_exercises WHERE exe_user_id = 0 OR exe_user_id IS NULL');

@ -7,11 +7,13 @@ namespace Chamilo\CoreBundle\Migrations\Schema\V200;
use Chamilo\CoreBundle\Migrations\AbstractMigrationChamilo;
use Doctrine\DBAL\Schema\Schema;
/**
* c_tool.
*/
class Version20180928172830 extends AbstractMigrationChamilo
{
public function getDescription(): string
{
return 'Migrate c_tool';
}
public function up(Schema $schema): void
{
$table = $schema->getTable('c_tool');

Loading…
Cancel
Save