[ixpmanager] IXP Manager - Doctrine Configuration Current Status
Abdul Saboor
asaboor.msit15seecs at seecs.edu.pk
Fri Oct 5 08:50:10 IST 2018
Dear Yann,
Thanks for the solution. It worked perfectly. I have a couple of more
queries and will really apprciate if you can have a look into this:
*1).* When the command [doctrine:generate:entities] is run in the Terminal,
it produces all Entities in the app folder i.e. *app/Entities* sub folder.
Although, it's path has been set in the *doctrine.php* configuration file
as:
'managers' => [
'default' => [
'dev' => env('APP_DEBUG'),
'meta' => env('DOCTRINE_METADATA', '*xml*'),
'connection' => env('DB_CONNECTION', 'mysql'),
'namespaces' => [
'IXP',
],
*'paths' => [
database_path('xml')*
],
'repository' => Doctrine\ORM\EntityRepository::class,
'proxies' => [
'namespace' => 'Proxies',
'path' => database_path('Proxies'),
'auto_generate' => env('DOCTRINE_PROXY_AUTOGENERATE', false)
],
Its default path is database/Entities as in the current project settings.
*2.)* The second issue is with *getters* and *setters*. The command [
*doctrine:generate:entities*] generate entities at the specific folder (
*app/Entities*) *without default getters and setters*. We need to solve
this issue.
*3.)* The third issue, there is no specific command found for generating
*Repositories* like in symphony doctrine framework. Every time, we create a
new repository, we will hard code it by taking help from other repository
files in the IXP Manager_* /database/Repositories folder.
My point of view is that if the Doctrine ORM framework is properly used, it
will automatically generate all the necessary files by default. Can you
share your point of view on this?
Regards,
Saboor
On Thu, Oct 4, 2018 at 12:24 PM Yann Robin <yann at islandbridgenetworks.ie>
wrote:
> Hello,
>
> I am one of the developers of IPX manager, sometime by just running the
> command "composer install" it help.
>
> It can come from that you still have the old cache, this kind of error
> message already happened to me when I wanted to create a new repository.
>
> So try to run the command "composer install", if this does not change
> anything, I will dig deeper in your error.
>
> Thanks
>
> Abdul Saboor wrote:
>
>
> Dear Team IXP Manager,
> I am currently working to figure out doctrine ORM configuration in IXP
> Manager. The code has been written very deeply, it's very challenging.
>
> Right now, I am facing one challenge to create *Entity*, *Repository*
> /classes/ in the _*IXP Manager Database*_ main folders. Although, I
> have read Doctrine ORM official documentation to grasp the main
> concepts thoroughly, and it looks very simple to start, but more care
> is needed to handle it so that it can not affect the other modules of
> the project.
>
> I am going to attach the entity class for the faucet controller whose
> metadata has been written in the XML file. The IXP Manager's default
> approach is XML, given entities related information in XML format. The
> default path for the entities folder as written in
> _*doctrine.php*_ file is:
>
> 'managers' => [
> 'default' => [
> 'dev' => env('APP_DEBUG'),
> 'meta' => env('DOCTRINE_METADATA', '*xml*'),
> 'connection' => env('DB_CONNECTION', 'mysql'),
> 'namespaces' => [
> 'IXP',
> ],
> *'paths' => [
> database_path('xml')*
> ],
> 'repository' => Doctrine\ORM\EntityRepository::class,
> 'proxies' => [
> 'namespace' => 'Proxies',
> 'path' => database_path('Proxies'),
> 'auto_generate' => env('DOCTRINE_PROXY_AUTOGENERATE', false)
> ],
>
> The problem is when I run the following command at terminal, it gives
> me the error (Please see attachment - Doctrine Entity Error.png).
>
> /php artisan doctrine:schema:validate/
>
> In MappingException.php line 96:
>
> Class 'Entities\Faucet' does not exist.
>
> What does this means is that it is searching Faucet Entity File in
> _*app/Entities*_ folder, which is totally wrong according to its
> current configuration as you can see its default route is
> *database_path('xml')*.
>
> Would you please share this with the concerned developers of IXP
> Manager, so that we can move forward for further developments.
>
> Regards,
> Saboor
> _______________________________________________
> INEX IXP Manager mailing list
> ixpmanager at inex.ie
> Unsubscribe or change options here:
> https://www.inex.ie/mailman/listinfo/ixpmanager
>
> _______________________________________________
> INEX IXP Manager mailing list
> ixpmanager at inex.ie
> Unsubscribe or change options here:
> https://www.inex.ie/mailman/listinfo/ixpmanager
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.inex.ie/pipermail/ixpmanager/attachments/20181005/f69b7e1c/attachment.html>
More information about the ixpmanager
mailing list