sfDoctrineTableGetterPlugin - 1.2.0

Code Completion support for Doctrine Table Getters

You are currently browsing
the website for symfony 1

Visit the Symfony2 website


« Back to the Plugins Home

Signin


Forgot your password?
Create an account

Tools

Stats

advanced search
Information Readme Releases Changelog Contribute
sfDoctrineTableGetterPlugin 1.2.0stable for and Doctrine MIT
Plugin image
7
users
Sign-in
to change
your status

This plugin enables to have code completion support for Doctrine table accesses in your favorite Integrated development environment (IDE). Just install the plugin, run doctrine:build task and you are up!

This plugin makes it possible to have code completion for doctrine tables in your favorite IDE. The native design of Doctrine doesn't permit to know return types of a call like Doctrine::getTable('User'), therefore IDE's cannot spot what the return type is.

However, this plugin fires up right after every doctrine:build task run and generates a file which includes explicit definitions (phpdoc) for each table.

Features

  • Works right after 'sfDoctrineBuildModelTask', 'sfDoctrineCleanModelFilesTask', 'sfDoctrineDeleteModelFilesTask' tasks.
  • Very simple syntax: DoctrineTableGetter::getInstance()->getUserTable() is equivalent to Doctrine::getTable('User') but the former one informs IDE that it returns a UserTable instance, which makes it possible to have code completion.
  • Works with all major IDE's like, Eclipse PDT, Zend Studio, Netbeans PHP IDE etc.

Developers

Name Status Email
gravatar Alaattin Kahramanlar lead rt.moc.ty <<ta>> ralnamarhak.nittaala

License

Show source

Copyright (C) 2011, Yonca Teknoloji

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.