1010
1111namespace ADmad \SocialAuth \Model \Table ;
1212
13- use Cake \Database \Schema \TableSchemaInterface ;
1413use Cake \ORM \Table ;
1514
1615/**
1716 * @method \ADmad\SocialAuth\Model\Entity\SocialProfile newEmptyEntity()
1817 * @method \ADmad\SocialAuth\Model\Entity\SocialProfile newEntity(array $data, array $options = [])
1918 * @method \ADmad\SocialAuth\Model\Entity\SocialProfile[] newEntities(array $data, array $options = [])
20- * @method \ADmad\SocialAuth\Model\Entity\SocialProfile get($primaryKey, $options = [] )
19+ * @method \ADmad\SocialAuth\Model\Entity\SocialProfile get(mixed $primaryKey, array|string $finder = 'all', \Psr\SimpleCache\CacheInterface|string|null $cache = null, \Closure|string|null $cacheKey = null, mixed ...$args )
2120 * @method \ADmad\SocialAuth\Model\Entity\SocialProfile findOrCreate($search, ?callable $callback = null, $options = [])
2221 * @method \ADmad\SocialAuth\Model\Entity\SocialProfile patchEntity(\Cake\Datasource\EntityInterface $entity, array $data, array $options = [])
2322 * @method \ADmad\SocialAuth\Model\Entity\SocialProfile[] patchEntities(iterable $entities, array $data, array $options = [])
2423 * @method \ADmad\SocialAuth\Model\Entity\SocialProfile|false save(\Cake\Datasource\EntityInterface $entity, $options = [])
2524 * @method \ADmad\SocialAuth\Model\Entity\SocialProfile saveOrFail(\Cake\Datasource\EntityInterface $entity, $options = [])
26- * @method \ADmad\SocialAuth\Model\Entity\SocialProfile[]|\Cake\Datasource\ResultSetInterface| false saveMany(iterable $entities, $options = [])
27- * @method \ADmad\SocialAuth\Model\Entity\SocialProfile[]|\Cake\Datasource\ResultSetInterface saveManyOrFail(iterable $entities, $options = [])
28- * @method \ADmad\SocialAuth\Model\Entity\SocialProfile[]|\Cake\Datasource\ResultSetInterface| false deleteMany(iterable $entities, $options = [])
29- * @method \ADmad\SocialAuth\Model\Entity\SocialProfile[]|\Cake\Datasource\ResultSetInterface deleteManyOrFail(iterable $entities, $options = [])
25+ * @method \ADmad\SocialAuth\Model\Entity\SocialProfile[]|false saveMany(iterable $entities, $options = [])
26+ * @method \ADmad\SocialAuth\Model\Entity\SocialProfile[] saveManyOrFail(iterable $entities, $options = [])
27+ * @method \ADmad\SocialAuth\Model\Entity\SocialProfile[]|false deleteMany(iterable $entities, $options = [])
28+ * @method \ADmad\SocialAuth\Model\Entity\SocialProfile[] deleteManyOrFail(iterable $entities, $options = [])
3029 * @mixin \Cake\ORM\Behavior\TimestampBehavior
3130 */
3231class SocialProfilesTable extends Table
@@ -42,18 +41,6 @@ public function initialize(array $config): void
4241 parent ::initialize ($ config );
4342
4443 $ this ->addBehavior ('Timestamp ' );
45- }
46-
47- /**
48- * Set custom type of "access_token" column.
49- *
50- * @param \Cake\Database\Schema\TableSchemaInterface $schema The table definition fetched from database.
51- * @return \Cake\Database\Schema\TableSchemaInterface
52- */
53- protected function _initializeSchema (TableSchemaInterface $ schema ): TableSchemaInterface
54- {
55- $ schema ->setColumnType ('access_token ' , 'social-auth.serialized ' );
56-
57- return $ schema ;
44+ $ this ->getSchema ()->setColumnType ('access_token ' , 'social-auth.serialized ' );
5845 }
5946}
0 commit comments