diff --git a/Models/AddressMapper.php b/Models/AddressMapper.php index be9fd2f..4e491b7 100644 --- a/Models/AddressMapper.php +++ b/Models/AddressMapper.php @@ -30,13 +30,13 @@ class AddressMapper extends DataMapperAbstract * @since 1.0.0 */ protected static $columns = [ - 'profile_address_id' => ['name' => 'profile_address_id', 'type' => 'int', 'internal' => 'id'], - 'profile_address_type' => ['name' => 'profile_address_type', 'type' => 'int', 'internal' => 'type'], - 'profile_address_address' => ['name' => 'profile_address_address', 'type' => 'string', 'internal' => 'address'], - 'profile_address_street' => ['name' => 'profile_address_street', 'type' => 'string', 'internal' => 'street'], - 'profile_address_city' => ['name' => 'profile_address_city', 'type' => 'string', 'internal' => 'city'], - 'profile_address_zip' => ['name' => 'profile_address_zip', 'type' => 'string', 'internal' => 'postal'], - 'profile_address_country' => ['name' => 'profile_address_country', 'type' => 'string', 'internal' => 'country'], + 'profile_address_id' => ['name' => 'profile_address_id', 'type' => 'int', 'internal' => 'id'], + 'profile_address_type' => ['name' => 'profile_address_type', 'type' => 'int', 'internal' => 'type'], + 'profile_address_address' => ['name' => 'profile_address_address', 'type' => 'string', 'internal' => 'address'], + 'profile_address_street' => ['name' => 'profile_address_street', 'type' => 'string', 'internal' => 'street'], + 'profile_address_city' => ['name' => 'profile_address_city', 'type' => 'string', 'internal' => 'city'], + 'profile_address_zip' => ['name' => 'profile_address_zip', 'type' => 'string', 'internal' => 'postal'], + 'profile_address_country' => ['name' => 'profile_address_country', 'type' => 'string', 'internal' => 'country'], ]; /** diff --git a/Models/ContactElementMapper.php b/Models/ContactElementMapper.php index 70a8642..8298b33 100644 --- a/Models/ContactElementMapper.php +++ b/Models/ContactElementMapper.php @@ -28,7 +28,7 @@ class ContactElementMapper extends DataMapperAbstract * @since 1.0.0 */ protected static $columns = [ - 'profile_contact_id' => ['name' => 'profile_contact_id', 'type' => 'int', 'internal' => 'id'], + 'profile_contact_id' => ['name' => 'profile_contact_id', 'type' => 'int', 'internal' => 'id'], ]; /** diff --git a/Models/ProfileMapper.php b/Models/ProfileMapper.php index f3d2a32..dc3a6f3 100644 --- a/Models/ProfileMapper.php +++ b/Models/ProfileMapper.php @@ -32,11 +32,11 @@ class ProfileMapper extends DataMapperAbstract * @since 1.0.0 */ protected static $columns = [ - 'profile_account_id' => ['name' => 'profile_account_id', 'type' => 'int', 'internal' => 'id'], - 'profile_account_image' => ['name' => 'profile_account_image', 'type' => 'int', 'internal' => 'image'], - 'profile_account_birthday' => ['name' => 'profile_account_birthday', 'type' => 'DateTime', 'internal' => 'birthday'], - 'profile_account_account' => ['name' => 'profile_account_account', 'type' => 'int', 'internal' => 'account'], - 'profile_account_calendar' => ['name' => 'profile_account_calendar', 'type' => 'int', 'internal' => 'calendar'], + 'profile_account_id' => ['name' => 'profile_account_id', 'type' => 'int', 'internal' => 'id'], + 'profile_account_image' => ['name' => 'profile_account_image', 'type' => 'int', 'internal' => 'image'], + 'profile_account_birthday' => ['name' => 'profile_account_birthday', 'type' => 'DateTime', 'internal' => 'birthday'], + 'profile_account_account' => ['name' => 'profile_account_account', 'type' => 'int', 'internal' => 'account'], + 'profile_account_calendar' => ['name' => 'profile_account_calendar', 'type' => 'int', 'internal' => 'calendar'], ]; /** @@ -46,17 +46,17 @@ class ProfileMapper extends DataMapperAbstract * @since 1.0.0 */ protected static $ownsOne = [ - 'account' => [ - 'mapper' => AccountMapper::class, - 'src' => 'profile_account_account', + 'account' => [ + 'mapper' => AccountMapper::class, + 'src' => 'profile_account_account', ], - 'image' => [ - 'mapper' => MediaMapper::class, - 'src' => 'profile_account_image', + 'image' => [ + 'mapper' => MediaMapper::class, + 'src' => 'profile_account_image', ], 'calendar' => [ - 'mapper' => CalendarMapper::class, - 'src' => 'profile_account_calendar', + 'mapper' => CalendarMapper::class, + 'src' => 'profile_account_calendar', ], ]; @@ -68,10 +68,10 @@ class ProfileMapper extends DataMapperAbstract */ protected static $hasMany = [ 'location' => [ - 'mapper' => AddressMapper::class, - 'table' => 'profile_address', - 'dst' => 'profile_address_account', - 'src' => null, + 'mapper' => AddressMapper::class, + 'table' => 'profile_address', + 'dst' => 'profile_address_account', + 'src' => null, ], ];