hey guys , I have extended user table in zed and add new column to table but it is not appearing .
Comments
-
In your UserCommunicationFactory, what namespace for your UsersTable is used?
0 -
namespace Pyz\Zed\User\Communication;
0 -
is there need to extend controller ? becaz inside controller they are calling facade and create the talble like this
$usersTable = $this->getFactory()->createUserTable();0 -
The facade get's resolved to your project facade, this should be fine.
I would set a debugger breakpoint in the controller to see what is going on
0 -
sir is there need to extend the controller ?
0 -
No, there is no need to extend the controller, extending the Table and the CommunicationFactory, as well as the *.schema.xml is enough.
0 -
-
As your
SpyUsersTableMap
already has a columnCOL_MOBILE_NUMBER
you already extended the database via a schema file. That done.0 -
As said:
I would set a debugger breakpoint in the controller to see what is going on
Without seeing the complete code it's pretty hard to find the issue. From looking at what you've shown it looks fine
0 -
-
okay i will configure it and will check it .
0 -
fsmeier Senior Software Engineer & Developer Enablement Advocate Sprykee Posts: 1,075 βοΈ - Guardians (admin)
@U04TM8FELSF Can you may post all the use-statements of your CommunicationFactory?
0 -
<?php
/**
* Copyright Β© 2016-present Spryker Systems GmbH. All rights reserved.
* Use of this software requires acceptance of the Evaluation License Agreement. See LICENSE file.
*/namespace Spryker\Zed\User\Communication;
use Spryker\Zed\Kernel\Communication\AbstractCommunicationFactory;
use Spryker\Zed\User\Communication\Form\ActivateUserForm;
use Spryker\Zed\User\Communication\Form\DataProvider\UserFormDataProvider;
use Spryker\Zed\User\Communication\Form\DataProvider\UserUpdateFormDataProvider;
use Spryker\Zed\User\Communication\Form\DeactivateUserForm;
use Spryker\Zed\User\Communication\Form\ResetPasswordForm;
use Spryker\Zed\User\Communication\Form\UserDeleteConfirmForm;
use Spryker\Zed\User\Communication\Form\UserForm;
use Spryker\Zed\User\Communication\Form\UserUpdateForm;
use Spryker\Zed\User\Communication\Table\PluginExecutor\UserTablePluginExecutor;
use Spryker\Zed\User\Communication\Table\PluginExecutor\UserTablePluginExecutorInterface;
use Spryker\Zed\User\Communication\Table\UsersTable;
use Spryker\Zed\User\UserDependencyProvider;
use Symfony\Component\Form\FormInterface;/**
* @method \Spryker\Zed\User\Persistence\UserQueryContainerInterface getQueryContainer()
* @method \Spryker\Zed\User\UserConfig getConfig()
* @method \Spryker\Zed\User\Business\UserFacadeInterface getFacade()
*/
class UserCommunicationFactory extends AbstractCommunicationFactory
{
/**
* @return \Symfony\Component\Form\FormInterface
*/
public function createResetPasswordForm()
{
return $this->getFormFactory()->create(ResetPasswordForm::class);
}/** * @return \Spryker\Zed\User\Communication\Table\UsersTable */ public function createUserTable() { return new UsersTable( $this->getQueryContainer(), $this->getProvidedDependency(UserDependencyProvider::SERVICE_DATE_FORMATTER), $this->createUserTablePluginExecutor(), ); } /** * @return \Spryker\Zed\User\Communication\Table\PluginExecutor\UserTablePluginExecutorInterface */ public function createUserTablePluginExecutor(): UserTablePluginExecutorInterface { return new UserTablePluginExecutor( $this->getUserTableActionExpanderPlugins(), $this->getUserTableConfigExpanderPlugins(), $this->getUserTableDataExpanderPlugins(), ); } /** * @param array<string, mixed> $data * @param array<string, mixed> $options * * @return \Symfony\Component\Form\FormInterface */ public function createUserForm(array $data = [], array $options = []) { return $this->getFormFactory()->create(UserForm::class, $data, $options); } /** * @return array<\Spryker\Zed\UserExtension\Dependency\Plugin\UserFormExpanderPluginInterface> */ public function getFormExpanderPlugins(): array { return $this->getProvidedDependency(UserDependencyProvider::PLUGINS_USER_FORM_EXPANDER); } /** * @param array<string, mixed> $data * @param array<string, mixed> $options * * @return \Symfony\Component\Form\FormInterface */ public function createUpdateUserForm(array $data = [], array $options = []) { return $this->getFormFactory()->create(UserUpdateForm::class, $data, $options); } /** * @return \Symfony\Component\Form\FormInterface */ public function getUserDeleteConfirmForm(): FormInterface { return $this->getFormFactory()->create(UserDeleteConfirmForm::class); } /** * @return \Symfony\Component\Form\FormInterface */ public function createActivateUserForm(): FormInterface { return $this->getFormFactory()->create(ActivateUserForm::class); } /** * @return \Symfony\Component\Form\FormInterface */ public function createDeactivateUserForm(): FormInterface { return $this->getFormFactory()->create(DeactivateUserForm::class); } /** * @return \Spryker\Zed\User\Communication\Form\DataProvider\UserFormDataProvider */ public function createUserFormDataProvider() { /** @var \Spryker\Zed\User\Business\UserFacade $userFacade */ $userFacade = $this->getFacade(); return new UserFormDataProvider($this->getGroupPlugin(), $userFacade); } /** * @return \Spryker\Zed\User\Communication\Form\DataProvider\UserUpdateFormDataProvider */ public function createUserUpdateFormDataProvider() { /** @var \Spryker\Zed\User\Business\UserFacade $userFacade */ $userFacade = $this->getFacade(); return new UserUpdateFormDataProvider($this->getGroupPlugin(), $userFacade); } /** * @return \Spryker\Zed\User\Dependency\Plugin\GroupPluginInterface */ public function getGroupPlugin() { return $this->getProvidedDependency(UserDependencyProvider::PLUGIN_GROUP); } /** * @return array<\Spryker\Zed\UserExtension\Dependency\Plugin\UserTableActionExpanderPluginInterface> */ protected function getUserTableActionExpanderPlugins(): array { return $this->getProvidedDependency(UserDependencyProvider::PLUGINS_USER_TABLE_ACTION_EXPANDER); } /** * @return array<\Spryker\Zed\UserExtension\Dependency\Plugin\UserTableConfigExpanderPluginInterface> */ protected function getUserTableConfigExpanderPlugins(): array { return $this->getProvidedDependency(UserDependencyProvider::PLUGINS_USER_TABLE_CONFIG_EXPANDER); } /** * @return array<\Spryker\Zed\UserExtension\Dependency\Plugin\UserTableDataExpanderPluginInterface> */ protected function getUserTableDataExpanderPlugins(): array { return $this->getProvidedDependency(UserDependencyProvider::PLUGINS_USER_TABLE_DATA_EXPANDER); }
}
0 -
use Spryker\Zed\User\Communication\Table\UsersTable;
must beuse Pyz\Zed\User\Communication\Table\UsersTable;
0 -
That was one of the first thing's I asked
0 -
okay sir mobile number is appearing
0 -
thank you sir
0
Categories
- All Categories
- 42 Getting Started & Guidelines
- 7 Getting Started in the Community
- 8 Additional Resources
- 7 Community Ideas and Feedback
- 75 Spryker News
- 919 Developer Corner
- 779 Spryker Development
- 89 Spryker Dev Environment
- 362 Spryker Releases
- 3 Oryx frontend framework
- 34 Propel ORM
- 68 Community Projects
- 3 Community Ideation Board
- 30 Hackathon
- 3 PHP Bridge
- 6 Gacela Project
- 25 Job Opportunities
- 3.2K π Slack Archives
- 116 Academy
- 5 Business Users
- 370 Docker
- 551 Slack General
- 2K Help
- 75 Knowledge Sharing
- 6 Random Stuff
- 4 Code Testing
- 32 Product & Business Questions
- 69 Spryker Safari Questions
- 50 Random