mirror of
https://github.com/symfony/symfony1-docs.git
synced 2026-03-24 01:02:21 +01:00
Merge pull request #33 from symfony/jobeet_webservices_chp15
[jobeet] fixed missing unique index on the JobeetAffiliate model class a...
This commit is contained in:
@@ -85,7 +85,7 @@ agnostic, let's create the schema file by hand by editing the empty
|
||||
id: ~
|
||||
url: { type: varchar(255), required: true }
|
||||
email: { type: varchar(255), required: true, index: unique }
|
||||
token: { type: varchar(255), required: true }
|
||||
token: { type: varchar(255), required: true, index: unique }
|
||||
is_active: { type: boolean, required: true, default: 0 }
|
||||
created_at: ~
|
||||
|
||||
@@ -134,7 +134,7 @@ agnostic, let's create the schema file by hand by editing the empty
|
||||
columns:
|
||||
url: { type: string(255), notnull: true }
|
||||
email: { type: string(255), notnull: true, unique: true }
|
||||
token: { type: string(255), notnull: true }
|
||||
token: { type: string(255), notnull: true, unique: true }
|
||||
is_active: { type: boolean, notnull: true, default: 0 }
|
||||
relations:
|
||||
JobeetCategories:
|
||||
|
||||
@@ -302,10 +302,10 @@ method:
|
||||
'description' => $this->getDescription(),
|
||||
'how_to_apply' => $this->getHowToApply(),
|
||||
<propel>
|
||||
'expires_at' => $this->getCreatedAt('c'),
|
||||
'expires_at' => $this->getExpiresAt('c'),
|
||||
</propel>
|
||||
<doctrine>
|
||||
'expires_at' => $this->getCreatedAt(),
|
||||
'expires_at' => $this->getExpiresAt(),
|
||||
</doctrine>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -66,7 +66,7 @@ Como la base de datos no existe todavía, y como queremos mantener la base de da
|
||||
id: ~
|
||||
url: { type: varchar(255), required: true }
|
||||
email: { type: varchar(255), required: true, index: unique }
|
||||
token: { type: varchar(255), required: true }
|
||||
token: { type: varchar(255), required: true, index: unique }
|
||||
is_active: { type: boolean, required: true, default: 0 }
|
||||
created_at: ~
|
||||
|
||||
@@ -114,7 +114,7 @@ Como la base de datos no existe todavía, y como queremos mantener la base de da
|
||||
columns:
|
||||
url: { type: string(255), notnull: true }
|
||||
email: { type: string(255), notnull: true, unique: true }
|
||||
token: { type: string(255), notnull: true }
|
||||
token: { type: string(255), notnull: true, unique: true }
|
||||
is_active: { type: boolean, notnull: true, default: 0 }
|
||||
relations:
|
||||
JobeetCategories:
|
||||
|
||||
@@ -282,10 +282,10 @@ En lugar de pasar un array de objetos `JobeetJob` a las plantillas, se pasa un a
|
||||
'description' => $this->getDescription(),
|
||||
'how_to_apply' => $this->getHowToApply(),
|
||||
<propel>
|
||||
'expires_at' => $this->getCreatedAt('c'),
|
||||
'expires_at' => $this->getExpiresAt('c'),
|
||||
</propel>
|
||||
<doctrine>
|
||||
'expires_at' => $this->getCreatedAt(),
|
||||
'expires_at' => $this->getExpiresAt(),
|
||||
</doctrine>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -85,7 +85,7 @@ la base de données Jobeet, nous allons créer le fichier du schéma à la main
|
||||
id: ~
|
||||
url: { type: varchar(255), required: true }
|
||||
email: { type: varchar(255), required: true, index: unique }
|
||||
token: { type: varchar(255), required: true }
|
||||
token: { type: varchar(255), required: true, index: unique }
|
||||
is_active: { type: boolean, required: true, default: 0 }
|
||||
created_at: ~
|
||||
|
||||
@@ -134,7 +134,7 @@ la base de données Jobeet, nous allons créer le fichier du schéma à la main
|
||||
columns:
|
||||
url: { type: string(255), notnull: true }
|
||||
email: { type: string(255), notnull: true, unique: true }
|
||||
token: { type: string(255), notnull: true }
|
||||
token: { type: string(255), notnull: true, unique: true }
|
||||
is_active: { type: boolean, notnull: true, default: 0 }
|
||||
relations:
|
||||
JobeetCategories:
|
||||
|
||||
@@ -305,10 +305,10 @@ la logique pour traiter les valeurs a été refactorisée dans la méthode
|
||||
'description' => $this->getDescription(),
|
||||
'how_to_apply' => $this->getHowToApply(),
|
||||
<propel>
|
||||
'expires_at' => $this->getCreatedAt('c'),
|
||||
'expires_at' => $this->getExpiresAt('c'),
|
||||
</propel>
|
||||
<doctrine>
|
||||
'expires_at' => $this->getCreatedAt(),
|
||||
'expires_at' => $this->getExpiresAt(),
|
||||
</doctrine>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -87,7 +87,7 @@ di esso (come realizzarlo), creeremo lo schema a mano modificando un file vuoto
|
||||
id: ~
|
||||
url: { type: varchar(255), required: true }
|
||||
email: { type: varchar(255), required: true, index: unique }
|
||||
token: { type: varchar(255), required: true }
|
||||
token: { type: varchar(255), required: true, index: unique }
|
||||
is_active: { type: boolean, required: true, default: 0 }
|
||||
created_at: ~
|
||||
|
||||
@@ -136,7 +136,7 @@ di esso (come realizzarlo), creeremo lo schema a mano modificando un file vuoto
|
||||
columns:
|
||||
url: { type: string(255), notnull: true }
|
||||
email: { type: string(255), notnull: true, unique: true }
|
||||
token: { type: string(255), notnull: true }
|
||||
token: { type: string(255), notnull: true, unique: true }
|
||||
is_active: { type: boolean, notnull: true, default: 0 }
|
||||
relations:
|
||||
JobeetCategories:
|
||||
|
||||
@@ -301,10 +301,10 @@ la logica di processare i valori è stata spostata fuori nel metodo `JobeetJob::
|
||||
'description' => $this->getDescription(),
|
||||
'how_to_apply' => $this->getHowToApply(),
|
||||
<propel>
|
||||
'expires_at' => $this->getCreatedAt('c'),
|
||||
'expires_at' => $this->getExpiresAt('c'),
|
||||
</propel>
|
||||
<doctrine>
|
||||
'expires_at' => $this->getCreatedAt(),
|
||||
'expires_at' => $this->getExpiresAt(),
|
||||
</doctrine>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -60,7 +60,7 @@ ORM には、関連するクラスを生成するために、テーブルとリ
|
||||
id: ~
|
||||
url: { type: varchar(255), required: true }
|
||||
email: { type: varchar(255), required: true, index: unique }
|
||||
token: { type: varchar(255), required: true }
|
||||
token: { type: varchar(255), required: true, index: unique }
|
||||
is_active: { type: boolean, required: true, default: 0 }
|
||||
created_at: ~
|
||||
|
||||
@@ -107,7 +107,7 @@ ORM には、関連するクラスを生成するために、テーブルとリ
|
||||
columns:
|
||||
url: { type: string(255), notnull: true }
|
||||
email: { type: string(255), notnull: true, unique: true }
|
||||
token: { type: string(255), notnull: true }
|
||||
token: { type: string(255), notnull: true, unique: true }
|
||||
is_active: { type: boolean, notnull: true, default: 0 }
|
||||
relations:
|
||||
JobeetCategories:
|
||||
|
||||
@@ -278,10 +278,10 @@ Jobeet のフィード追加に関して、求職者はリアルタイムで新
|
||||
'description' => $this->getDescription(),
|
||||
'how_to_apply' => $this->getHowToApply(),
|
||||
<propel>
|
||||
'expires_at' => $this->getCreatedAt('c'),
|
||||
'expires_at' => $this->getExpiresAt('c'),
|
||||
</propel>
|
||||
<doctrine>
|
||||
'expires_at' => $this->getCreatedAt(),
|
||||
'expires_at' => $this->getExpiresAt(),
|
||||
</doctrine>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -63,7 +63,7 @@ Como o banco de dados não existe ainda e queremos manter o banco de dados do Jo
|
||||
id: ~
|
||||
url: { type: varchar(255), required: true }
|
||||
email: { type: varchar(255), required: true, index: unique }
|
||||
token: { type: varchar(255), required: true }
|
||||
token: { type: varchar(255), required: true, index: unique }
|
||||
is_active: { type: boolean, required: true, default: 0 }
|
||||
created_at: ~
|
||||
|
||||
@@ -110,7 +110,7 @@ Como o banco de dados não existe ainda e queremos manter o banco de dados do Jo
|
||||
columns:
|
||||
url: { type: string(255), notnull: true }
|
||||
email: { type: string(255), notnull: true, unique: true }
|
||||
token: { type: string(255), notnull: true }
|
||||
token: { type: string(255), notnull: true, unique: true }
|
||||
is_active: { type: boolean, notnull: true, default: 0 }
|
||||
relations:
|
||||
JobeetCategories:
|
||||
|
||||
@@ -88,7 +88,7 @@ ORM потребует от вас описания таблиц и связей
|
||||
id: ~
|
||||
url: { type: varchar(255), required: true }
|
||||
email: { type: varchar(255), required: true, index: unique }
|
||||
token: { type: varchar(255), required: true }
|
||||
token: { type: varchar(255), required: true, index: unique }
|
||||
is_active: { type: boolean, required: true, default: 0 }
|
||||
created_at: ~
|
||||
|
||||
@@ -136,7 +136,7 @@ ORM потребует от вас описания таблиц и связей
|
||||
columns:
|
||||
url: { type: string(255), notnull: true }
|
||||
email: { type: string(255), notnull: true, unique: true }
|
||||
token: { type: string(255), notnull: true }
|
||||
token: { type: string(255), notnull: true, unique: true }
|
||||
is_active: { type: boolean, notnull: true, default: 0 }
|
||||
relations:
|
||||
JobeetCategories:
|
||||
|
||||
@@ -325,10 +325,10 @@ URL в начале:
|
||||
'description' => $this->getDescription(),
|
||||
'how_to_apply' => $this->getHowToApply(),
|
||||
<propel>
|
||||
'expires_at' => $this->getCreatedAt('c'),
|
||||
'expires_at' => $this->getExpiresAt('c'),
|
||||
</propel>
|
||||
<doctrine>
|
||||
'expires_at' => $this->getCreatedAt(),
|
||||
'expires_at' => $this->getExpiresAt(),
|
||||
</doctrine>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user