avegao / ufuturehouse-server Goto Github PK
View Code? Open in Web Editor NEWuFutureHouse is a solution for the management of real estate that allows a modern web synchronized with your data and offer an API for mobile and desktop applications.
uFutureHouse is a solution for the management of real estate that allows a modern web synchronized with your data and offer an API for mobile and desktop applications.
Hay que cambiar la administración de localizaciones para añadir las coordenadas de las provincias, ciudades y zonas y en la lista de localizaciones poder ver el mapa.
Hay que reducir la complejidad y la duplicidad en las entidades. La idea es usar interfaces.
Mirar http://symfony.com/doc/current/cookbook/doctrine/resolve_target_entity.html y http://stackoverflow.com/questions/9801173/creating-portable-bundles-with-extendable-entities-in-symfony2/18782956#18782956
Los datos que son collections para las personas, tantos físicas como jurídicas no aparecen en pantalla pero si en base de datos. La relación está a NULL.
Hacer una clase Util que ayude a subir ficheros.
SensioLabsInsight was not able to boot your Symfony2 application. If you need to customize files or run commands to make it bootable, you can edit your SensioLabsInsight project configuration to override the default "pre_composer_script" and/or "post_composer_script" settings.
An exception occured in driver: SQLSTATE[HY000] [2002] Connection refused in /home/foobar/code/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/AbstractMySQLDriver.php on line 103
Stack trace:
#0 /home/foobar/code/vendor/doctrine/dbal/lib/Doctrine/DBAL/DBALException.php(133): Doctrine\DBAL\Driver\AbstractMySQLDriver->convertException('An exception oc...', Object(Doctrine\DBAL\Driver\PDOException))
#1 /home/foobar/code/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOMySql/Driver.php(47): Doctrine\DBAL\DBALException::driverException(Object(Doctrine\DBAL\Driver\PDOMySql\Driver), Object(Doctrine\DBAL\Driver\PDOException))
#2 /home/foobar/code/vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(360): Doctrine\DBAL\Driver\PDOMySql\Driver->connect(Array, 'root', NULL, Array)
#3 /home/foobar/code/vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(429): Doctrine\DBAL\Connection->connect()
#4 /home/foobar/code/vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(389): Doctrine\DBAL\Connection->getDatabasePlatformVersion()
#5 /home/foobar/code/vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(328): Doctrine\DBAL\Connection->detectDatabasePlatform()
#6 /home/foobar/code/vendor/doctrine/orm/lib/Doctrine/ORM/Mapping/ClassMetadataFactory.php(81): Doctrine\DBAL\Connection->getDatabasePlatform()
#7 /home/foobar/code/vendor/doctrine/common/lib/Doctrine/Common/Persistence/Mapping/AbstractClassMetadataFactory.php(108): Doctrine\ORM\Mapping\ClassMetadataFactory->initialize()
#8 /home/foobar/code/vendor/symfony/symfony/src/Symfony/Bridge/Doctrine/CacheWarmer/ProxyCacheWarmer.php(69): Doctrine\Common\Persistence\Mapping\AbstractClassMetadataFactory->getAllMetadata()
#9 /home/foobar/code/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/CacheWarmer/CacheWarmerAggregate.php(48): Symfony\Bridge\Doctrine\CacheWarmer\ProxyCacheWarmer->warmUp('/home/foobar/co...')
#10 /home/foobar/code/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/Kernel.php(546): Symfony\Component\HttpKernel\CacheWarmer\CacheWarmerAggregate->warmUp('/home/foobar/co...')
#11 /home/foobar/code/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/Kernel.php(128): Symfony\Component\HttpKernel\Kernel->initializeContainer()
#12 /home/foobar/code/app/InsightAppKernel.php(15) : eval()'d code(7): Symfony\Component\HttpKernel\Kernel->boot()
#13 /home/foobar/code/app/InsightAppKernel.php(15): eval()
#14 {main}
Posted from SensioLabsInsight
in src/Ufuturelabs/Ufuturehouse/Server/HousingBundle/Form/Type/Catalogue/CatalogueType.php, line 34
If provided by the user, the value of
$this->catalogue
may allow an SQL injection attack. Avoid concatenating parameters to SQL query strings, and use parameter binding instead.
}
/** {@inheritdoc} */
public function setDefaultOptions(OptionsResolverInterface $resolver)
{
$dql = 'SELECT c FROM HousingBundle:Catalogue\Catalogue c WHERE c INSTANCE OF '.$this->catalogue;
$query = $this->em->createQuery($dql);
$choices = $query->getArrayResult();
$resolver->setDefaults(array(
'choices' => $choices,
Posted from SensioLabsInsight
After 5c70263:
[Doctrine\ORM\Mapping\MappingException]
Entity 'Ufuturelabs\Ufuturehouse\Server\PeopleBundle\Entity\Person' has to
be part of the discriminator map of 'Ufuturelabs\Ufuturehouse\Server\People
Bundle\Entity\Person' to be properly mapped in the inheritance hierarchy. A
lternatively you can make 'Ufuturelabs\Ufuturehouse\Server\PeopleBundle\Ent
ity\Person' an abstract class to avoid this exception from occurring.
in src/Ufuturelabs/Ufuturehouse/Server/BackendBundle/Util/Util.php, line 22
A Symfony dependency injection container has been found as an argument.
/**
* @param string|null $kernelRootDir
* @param ContainerInterface $container
*/
public function __construct($kernelRootDir = null, ContainerInterface $container = null)
{
$this->kernelRootDir = $kernelRootDir;
$this->container = $container;
}
Posted from SensioLabsInsight
El path del favicon no se guarda en base de datos
/** @var ContainerInterface */
private $container;
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.